HN user

Grue3

4,020 karma

Smug Lisp Weenie

Current project: http://ichi.moe (Japanese to English translation tool)

Posts2
Comments2,098
View on HN

So you agree that Cloudflare should be criminally liable for hosting extremist content? (yes, providing CDN service counts as hosting, as the content is stored on Cloudflare's servers)

Python 3.9 6 years ago

The fact that you can overwrite built-in functions is not a point in favor of the language. Imagine you do this in a library and everyone using print() in their project would use a modified print instead. You could've just modified sys.stdout instead.

Python 3.9 6 years ago
    for v in data_values: print v
Is exactly the same length but much more readable.
Python 3.9 6 years ago

This. It's hilarious how the parser knows what you're trying to do when using print statement in ipython and such, but still raises an Exception instead of printing the damn thing. Am I in the REPL to work on something, or to be frustrated by the ridiculous syntax? Just DWIM, Jesus Christ.

For Python work I use a pretty much out-of-the-box Emacs, with "magit" being the only plugin of note installed. And I also used "web-mode" when I was doing webdev. magit is the best Git interface ever, and a built-in Emacs feature called TRAMP allows for remote editing. I'm running ipython in a separate terminal. I don't really understand why you'd need something more than a text editor to edit Python code.

Now for Common Lisp I use SLIME, which I guess does count as IDE, seeing as it's much more powerful than most IDEs.

I'm using 2 Anki decks to learn Japanese: one was something named "COREplus" with keys in kana and the answers showing kanji and definition of the word. I figured it would be useful to pick out words from their pronounciation alone, despite the amount of homophones. The second deck I generated myself [1], it includes kanji and words containing kanji, and also statistics on how often each pronounciation of kanji is encountered. Finishing this deck allows you to read quite a lot of things (although it doesn't cover words containing non-Joyo kanji).

Now when I wanted to take an JLPT exam, I realized that my listening skills are awful, and my grammar skills aren't very good either. I started watching grammar lessons on Youtube in Japanese, as well as random videos in Japanese (mostly about trains/traveling). In the end I just barely passed listening (JLPT N2) but my grammar skills were really good.

[1] https://ankiweb.net/shared/info/831167744

The funny thing is, if you type print with space it recognizes what you meant, and still wouldn't do it, raising an exception instead. It would've cost them literally nothing to support both ways to write print, since the parser has to detect statement print anyway.

This works because regular dicts have guaranteed ordering since Python 3.7

But the API is different! OrderedDict has more methods that have to do with order, and `reverse` works on its `.keys()` and `.values()`. Or did they fix this in 3.8?

Docker overriding iptables rules, in my case. I was using somebody else's project distributed via docker-compose config, which made the port for elasticsearch public, which I was not aware of (I don't normally use docker or elasticsearch). Luckily I was able to regenerate the data stored in elasticsearch, though I had to do it twice because it got wiped again after regeneration and then I had to google what the hell is going on.

Drunk driving had to be banned because it's just too dangerous. It had to be eradicated at all costs even despite many people violating this law. On the other hand there's no indication that texting while walking is more dangerous than walking while drunk. Walking is a low-risk activity which doesn't require a license and people routinely do it while being under an influence.

I learned all Joyo kanji purely visually via spaced repetition (Anki). I can't actually write them from memory because I don't learn the exact strokes, just the shape of it and some specific radicals that distinguish a kanji from similar ones. I also know the general stroke order algorithm, which I use when I need to input an unknown kanji from a book or a sign, but I just use kana input method for anything else.

It works just fine for me (though my repos are small), however it is extremely slow when ssh'ing through Tramp onto a Linux host. I still put up with it because the interface is so good.