Readit News logoReadit News
nathell commented on The End of Handwriting   wired.com/story/the-end-o... · Posted by u/beardyw
nathell · 10 days ago
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.
nathell commented on The jank programming language   jank-lang.org/... · Posted by u/akkad33
Jeaye · 2 months ago
I agree with you, but perhaps in my own way. Jumping into an arbitrary Clojure program can be tough, since the data shapes may not be defined anywhere. Hopefully the program uses spec or malli, but even then, unless they annotate every function with the shape it expects, you may be left needing to REPL in and poke around. However, REPLing in to check just a function or two may not be easy if the program requires some setup and doesn't use integrant or similar.

Once Clojure parity is achieved, I'm interested in static typing, pattern matching, value-based errors, and some other opt-in improvements that I think will greatly improve both readability and toolability (i.e. how well tooling can work with the code, based on what it knows of the code). Stay tuned. :)

nathell · 2 months ago
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!

nathell commented on Bug Stories   500mile.email/... · Posted by u/thinkingemote
nathell · 2 months ago
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.

nathell commented on Show HN: Zenta – Mindfulness for Terminal Users   github.com/e6a5/zenta... · Posted by u/ihiep
nathell · 2 months ago
Thumbs up for the philosophy. This is the way.
nathell commented on Microsoft Edit   github.com/microsoft/edit... · Posted by u/ethanpil
jksmith · 2 months ago
This is just a "because I wanted to" project. And I get that; done a lot of those myself just to understand what the hell was going on. But the rewrite of turbo vision into FPC and compiling to half a dozen targets has been around for 20 years. Turbo vision is probably the best text mode windowing library in existence. The cool fun kicks in when you can map a whole text screen to an array like so: var Screen: Array[1..80,1..25] Of Byte Absolute $B800; // or something like that as i recall

What turbo vision brought to the game was movable, (non) modal windows. Basically a lot of rewriting that array in a loop. Pretty snappy. I made a shitload of money with that library.

nathell · 2 months ago
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.

nathell commented on Modern C++ – RAII   green7ea.github.io/modern... · Posted by u/green7ea
nathell · 3 months ago
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().

nathell commented on I taught my 3-year-old to read like a 9-year-old   theintrinsicperspective.c... · Posted by u/sebg
lostmsu · 3 months ago
What's your IQ in adult ages and how did you do on SAT? Have you ever done any form of science Olympics?
nathell · 3 months ago
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.

nathell commented on I taught my 3-year-old to read like a 9-year-old   theintrinsicperspective.c... · Posted by u/sebg
nathell · 3 months ago
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.

nathell commented on Display any CSV file as a searchable, filterable, pretty HTML table   github.com/derekeder/csv-... · Posted by u/indigodaddy
34f34f3 · 3 months ago
Alternatively, feed your spreadsheet file (CSV, XLS, whatever) to Google Sheets and then select File > Download > Web Page (.html) – especially when you have a ton of formatting (font, colors, borders, whatnot)... the result looks great!
nathell · 3 months ago
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).
nathell commented on The Awful German Language (1880)   faculty.georgetown.edu/jo... · Posted by u/nalinidash
bashkiddie · 3 months ago
Awesome example.

Germans are allowed to write compound nouns in hyphens

Donau-Dampfschifffahrts-Gesellschafts-Kapitänsmützenknopf-Farbenfabrik-Eingangstor

nathell · 3 months ago
Which is a combination of lisp-case and CamelCase. Neat!

u/nathell

KarmaCake day5646April 18, 2010
About
Just another Clojure hacker.

https://danieljanus.pl

meet.hn/city/52.2319581,21.0067249/Warsaw

View Original