News for hackers. Stuff that matters.

thechewanater

Re:The Low-Tech AI of Elden Ring on Tuesday June 23, 2026 @08:42PM (#48653670)
Elden Ring quests are implemented in a totally different set of systems from the one described in TFA, mostly something called EzState (dialogue trees) and EMS (map events). These are basically very primitive bytecode interpreters with unusual execution models and a small API surface to interact with the game world, so I think you're onto something. I can imagine the designers having a hard time implementing nicer interactions without constantly modifying the engine.

According to [1], earlier versions of the EMS editor were built on Microsoft Excel, took 30s to open, and didn't support undo/redo. They rewrote it for Elden Ring, but Dark Souls quest design makes a lot more sense when you realize how hard it was to change anything.

[1] https://cedil.cesa.or.jp/cedil_sessions/view/2662

Re:A Little Story About the `yes` Unix Command on Wednesday October 11, 2017 @10:31PM (#15455254)
python3 seems to do much better than either of those for me when using an unbuffered write(1, ...) syscall (plus it prints the correct thing)

    $ cat yes3.py
    stdout = open(1, 'wb')
    while True:
        stdout.write(b'y\n')
    $ python3 yes3.py | pv -r > /dev/null
    [13.7MiB/s]

    $ cat yes2.py
    import os
    stdout = os.fdopen(1, 'wb')
    while True:
        stdout.write('y\n')
    $ python2 yes2.py | pv -r > /dev/null
    [7.77MiB/s]
Re:Announcing CoffeeScript 2 on Monday September 18, 2017 @12:25PM (#15277230)
In coffeescript 1.x fat arrow functions already bound "this", although binding "arguments" is an actual change.

http://coffeescript.org/#breaking-change-fat-arrow

No it's not, it's illegal to use _ as a lambda parameter.