Hacker Newsnew | past | comments | ask | show | jobs | submit | twic's commentslogin

Reminds me more remotely of scoops used in coal mining, in very low-ceilinged seams:

https://www.komatsu.com/en-us/products/equipment/room-and-pi...


> The worst part, by far, was the emptying / prepping.

As described in one of the great modern tales of legend:

https://singletrackworld.com/2009/02/the-picolax-thread-retu...


The Python pickle format is a bytecode [1], although not a Turing-complete one, I think.

[1] https://formats.kaitai.io/python_pickle/


Pickle is definitely turing-complete. It's a super easy way to RCE your system.


Where does that come from though? I don't see any flow control or anything else compute-y in the bytecode itself. I know unpickling can run Python code, but i wouldn't say that makes the bytecode itself Turing-complete.

Among other things, a couple big culprits are STACK_GLOBAL, which converts strings on the stack into a Python object, functioning something like

  global_name = pop()
  module_name = pop()
  push(getattr(import_module(module_name), global_name))
And REDUCE, which executes code

  args = pop()
  f = pop()
  push(f(*args))
I think you're right that if you ignore the Python bits it's not a turing-complete stack machine, but I'm not sure ignoring those is fair.

If a tool had been replaced by a better tool, wouldn't it be natural to discuss that?


First - the tool in question had not been replaced. Second -discussion based on merits is one thing. Holy war is something totally different.

Personally I do not consider Rust to be a better tool but it does not matter. Each one is free to drink their own poison. I do not get obsessed about screwdrivers and I have used many.


In many instances the tool has been replaced.


You have written a glib and low effort reply to anything that disagrees with your Rust-maximal worldview. The sheer immaturity of Rust devs is enough to put me off the language.


That's actually a common pattern and to me that's a bit off-putting as well.

I have seen examples where some opinion gets momentum and it's repeated over and over again on the Internet even though the merit is very questionable.

Haven't looked enough into Rust to form an opinion though.


I haven't voiced an opinion, but a fact.

Otherwise, I don't respond to (imo) obvious provocations from questionable motives.


Not sure if this is related, but i'd love to see more scripting languages (mostly Python) offer facilities which let them take over from shell script for more scripts and one-liners.

Think about what it would take to write this in Python right now:

  for wmv_file in $(find $1 -name '*.wmv'); do
    echo -n "${wmv_file} "
    ffmpeg -i $wmv_file ${wmv_file%.wmv}.mpg 2>&1 | grep kb/s: || echo "ERROR $?"
  done
With a few handy variables and functions predefined, this could be something like:

  for wmv_file in find(argv[1], glob="\*.wmv"):
    print(wmv_file, end=" ")
    result = do("ffmpeg", "-i", wmv_file, basename(wmv_file, ".wmv") + ".mpg")
    if result: print(grep(str(result), "kb/s:"))
    else: print("ERROR", result.status)


How about

  for wmv in Path(sys.argv[1]).rglob("\*.wmv"):
        print(wmv, end=" ")
        r = subprocess.run(
            ["ffmpeg", "-i", wmv, wmv.with_suffix(".mpg")],
            stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
        )
        lines = [l for l in r.stdout.decode().splitlines() if "kb/s:" in l]
        print("\n".join(lines) if lines else f"ERROR {r.returncode}")
?

If you go outside stdlib you can use the sh library instead of subprocess.run.


Not bad, but the subprocess invocation is too verbose given this is a staple of shell script type work, and the string mangling is a bit painful.


I think Perl is what you're looking for!


Perl is what I've spent the last thirty years running away from.



Ruby does a pretty good job, with `system` and backticks. The FileUtils module actually defines some nice helpers like `mv`, `cp` and `ln_s`. So you can do `cp "/tmp/a.txt", filename`. And you can get a list of files matching a glob with `Dir["/tmp/*.txt"]`.



The article mentions:

> the German and Japanese point is 0.250 mm

It's probably the sanest adaptation of the point to the metric system. A traditional point is close to a third of a millimetre, but that's too weird.

Since the Q is close to 3/4 of a traditional point, it's also quite easy to convert from traditional multiple-of-three point sizes: 9 pt -> 12 Q, 12 pt -> 16 Q, etc.

Although it's even easier just to call those 3 mm and 4 mm!


This is pretty much what GL.iNet does. A nice slick interface for normal people, full OpenWRT nerd power a couple of clicks away for HN readers.


Ruckus APs also use OpenWRT. Saw it in a recent update that they pushed to Unleashed software.


If anyone is curious and near South Kensington, there is now a little exhibition on urushi at the V&A [1], which includes a film of a guy who harvests his own sap, processes it into lacquer, and then makes things with it.

That video is not online AFAICT, but there is another one about another artist, which includes some footage of an urushi workshop preparing the stuff, and her using it: https://www.youtube.com/watch?v=xeult7lZtbg

[1] https://www.vam.ac.uk/exhibitions/urushi-now-contemporary-ja...


What is going on with Japanese lacquer at the moment? There's this. There's the MSI Prestige 13 AI+ Ukiyo-e Edition [1]. The V&A opened an exhibition on it last weekend [2]. The Times had a puff piece on it a few months ago [3]. Is urushi suddenly cool? If so, why? Did the Urushi Marketing Board decide to have a big push, pull some strings, and now it's everywhere? I'm not complaining at all, just mildly puzzled.

As it happens, i saw the exhibition at the V&A today. It's decent, but small. Has a bunch of artefacts, and then some videos of some of the artists working, which are interesting.

[1] https://www.msi.com/Business-Productivity/Prestige-13-AI-plu...

[2] https://www.vam.ac.uk/exhibitions/urushi-now-contemporary-ja...

[3] https://www.thetimes.com/life-style/luxury/article/the-ancie...


Urushi has been going through a revival in fountain pen and watches (dials) the last five years. There is also more and more amateurs having access to urushi and learning it as a hobby.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: