Better HN
topnewbestaskshowjobs
Log inSign up

nathell

6,186 karma · joined Apr 18, 2010 (16y ago) · 917 submissions

Just another Clojure hacker.

https://danieljanus.pl

meet.hn/city/52.2319581,21.0067249/Warsaw

Submissions

comment 1y ago · link · parent

Authentic haiku

needn't have seventeen morae

in total, either.

See, e.g., Bashō's crow haiku, arguably one of the genre-defining poems [0]. Plus, English is on average terser than Japanese; I've read somewhere that, in English, 3-5-3 syllables pack roughly the same amount of content as the Japanese 5-7-5.

[0]: https://matsuobashohaiku.home.blog/2020/11/21/upon-a-withere...

comment 1y ago · link · parent

It’s Verdana.

Fun fact: the article uses U+03C0 GREEK SMALL LETTER PI (π), but Unicode also has several pi codepoints meant to be used specifically for math. E.g., U+1D6D1 MATHEMATICAL BOLD SMALL PI (let’s see whether HN strips it: [edit: it does, see [0]]).

[0]: https://en.wikipedia.org/wiki/Pi_(letter)#Unicode

comment 1y ago · link · parent

Yep. Existence of "the best engineers" would imply existence of The One True Metric by which you can judge the person in all context; but that's at best an oversimplification.

The actual metrics (not necessarily easily quantifiable) are the desired traits you put in your job description; they don't correlate perfectly.

comment 1y ago · link · parent

I keep a handwritten diary and a handwritten blog. Not that my penmanship is particularly exquisite – in fact it’s pretty mediocre – but handwriting by its nature is a very focusing activity for me. It’s one of the life hacks for my ADHD.

comment 1y ago · link · parent

If you can run it, then you can REPL it, no matter how deeply nested. Scope-capture (https://github.com/vvvvalvalval/scope-capture) has been probably the most important tool in my box. Hope jank supports it eventually.

Thanks for jank! It’s great to be reading about it, listening to you talking about it at conferences, and I can’t wait to try it out!

comment 1y ago · link · parent

OK, I have a fun one. I was a rookie back then, it was 2007, and the cloud was only beginning to take off. My company had a physical server room.

Automated CI was not quite as big back then as it is now; we had some in-house CI-ish facilities, one of which was buildbot: a small Python script that continuously built all of our projects one after another, reporting successes/failures in a simple UI.

One day I was puzzled to discover that buildbot hung trying to build a tiny Java applet. Just a handful of .java files. But it had been stuck for more than four hours at that point.

I ssh’d into buildbot and looked at what exactly the hung process was doing. It was not javac. It was jarsigner.

Then it dawned on me. jarsigner needed some crypto-safe randomness, it was trying to get it by default from /dev/random, not from /dev/urandom, and the machine ran out of entropy!

I ticketed a change, but as an interim measure, I went to the server room, switched the console to buildbot’s server, and moved the mouse vigorously for some seconds. It proceeded.

comment 1y ago · link · parent

Thumbs up for the philosophy. This is the way.

comment 1y ago · link · parent

array[1..25, 1..80] of Word absolute $B800:0000.

Arrays in TP were laid out in row-major order, and each character was represented by two bytes, one denoting the character itself and the other the attributes (foreground/background color and blinking). So, even better, array[1..25, 1..80] of packed record ch: char; attr: byte end absolute $B800:0000.

Replace $B800 with $B000 for monochrome text display (mode 7), e.g., on the Hercules.

comment 1y ago · link · parent

My pet peeve with C++ RAII is that it uses destructors for cleanup, so it can’t throw an exception from within the destructor if that fails somehow. E.g. from the manual page of close(2):

> A careful programmer will check the return value of close(), since it is quite possible that errors on a previous write(2) operation are reported only on the final close() that releases the open file description. Failing to check the return value when closing a file may lead to silent loss of data. This can especially be observed with NFS and with disk quota.

Last time I checked, GCC’s implementation of ~ofstream() ignored failures from the underlying close().

comment 1y ago · link · parent

It’s something like 130. I was educated in Poland, so never passed SAT, but did well at the ~equivalent matura. At the uni, I was a mediocre-ish student, though.

I approached the math olympiad back in high school, but found it too challenging. Looking backwards, I think I might have benefitted from having a better math teacher.

comment 1y ago · link · parent

I learned to recognize individual letters at ~18 months old, and read fluently at ~3yo (by way of adults responding to my curiosity about letters).

I’m 41 now; AMA.

comment 1y ago · link · parent

Alternatively, use visidata (https://www.visidata.org/) in the terminal. Supports xls/xlsx too! One of my favourite tools for terminal data exploration (along with jq, fx, and jet).

comment 1y ago · link · parent

Which is a combination of lisp-case and CamelCase. Neat!

comment 1y ago · link · parent

They also at one time blocked the author on Twitter.

https://x.com/zverok/status/1823757570240340466

comment 1y ago · link · parent

Here’s another one that I made: https://danieljanus.pl/wladcyslow/ – rearrange 9-letter words into grids of 5-letter words

comment 1y ago · link · parent

It actually predates ISC, dating back to 2001. These days you can play actual Scrabble on Kurnik, too!

ISC also supports Polish (with OSPS).

comment 1y ago · link · parent

From [0]:

> Rev. Robert Prevost bears responsibility for allowing former Providence Catholic H.S. President and priest Richard McGrath to stay at the high school amidst sex abuse allegations that dated back to the 1990s.

> That's according to Eduardo Lopez de Casas, a clergy abuse survivor and national vice president of the Chicago-based Survivors Network of those Abused by Priests (SNAP).

[0]: https://willcountygazette.com/stories/671124585-if-he-saw-an...

comment 1y ago · link · parent

Some related stuff:

In 2004, Gavin Barraclough’s mini-OS [0] won the IOCCC, packing a 32-bit multitasking operating system for x86 computers, with GUI and filesystem, support for loading and executing user applications in ELF binary format, with PS/2 mouse and keyboard drivers, VESA graphics, a command shell, and an application into 3.5 KB of highly obfuscated C code.

In 2021, Justine Tunney wrote SectorLISP [1], a Lisp implementation that fits into a bootsector and is able to run McCarthy’s metacircular evaluator.

[0]: https://www.ioccc.org/2004/gavin/index.html [1]: https://github.com/jart/sectorlisp

comment 1y ago · link · parent

> This is also a chess puzzle marked as very hard that a person who is good at chess should give themselves fifteen minutes to solve.

Is it, though? I play at around 1000 Elo – I have a long-standing interest in chess, but my brain invariably turns on fog of war that makes me not notice threats to my queen or something – and I solved it in something like one minute. It has very little moving parts, so the solution, while beautifully unobvious, can be easily brute-forced by a human.

comment 1y ago · link · parent

That’s a serious downgrade.

https://blog.danieljanus.pl/2019/10/07/web-of-documents/

comment 1y ago · link · parent

Alessandra Sierra has a great piece on this:

https://www.lambdasierra.com/2023/abbreviating/

comment 1y ago · link · parent

I’ve been learning Spanish on Duolingo. It has brought me from zero to scoring 96% on this test – I didn’t realise I was so advanced!

I love the concept and the execution. This is a rare instance of a Show HN that I not just admire, but can easily see myself using regularly and paying for.

Please, please monetise this in such a way as to avoid enshittification.

comment 1y ago · link · parent

Meh, it’s just trivial keyword substitution; not very interesting. `użyj std::zbiory::Słownik;` doesn’t sound right: we’d expect a genitive here.

The Right Thing for Polish would be to leverage the Polish inflection and freeform syntax, in the vein of Perl’s Lingua::Romana::Perligata [0].

[0]: https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L...

114.

Cleaner codebase, happier mind(blog.danieljanus.pl ↗)

1 points · by nathell · 1y ago · discuss

comment 1y ago · link · parent

I don’t think it’s valid; you would have consumed food and drink either way. Plus, you need to verify the output of the LLM anyway.

comment 1y ago · link · parent

Reminder that to open a jwz.org link from HN you have to bypass the browser sending a Referer header, most easily by right-clicking link -> Copy link and then pasting it into the address box.

comment 1y ago · link · parent

    ; in: THE 'END
    ;     (THE 'END)
    ;
    ; caught ERROR:
    ;   Error while parsing arguments to special operator THE:
    ;     too few elements in
    ;       ('END)
    ;     to satisfy lambda list
    ;       (VALUE-TYPE FORM):
    ;     exactly 2 expected, but got 1

comment 1y ago · link · parent

A good read, too!

comment 1y ago · link · parent

> Sure, you could just give up on roundtripping. But it’s important!

In the vast majority of cases, it’s not. If removing comments breaks roundtripping, then so does altering the indentation or adding/removing whitespace, even ever-so-slightly.

EDN parsers strip comments when read – it’s not an issue in practice.

120.

The CVM Algorithm(buttondown.com ↗)

3 points · by nathell · 2y ago · discuss

12345
31