Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tzot
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
tzot
2mo ago
I remember SQLWindows of Gupta Technologies (later renamed to Team Developer of Centura Technologies IIRC) which had an outline IDE. Quoting from https://yagnipedia.com/wiki/sqlwindows : > SQLWindows had an outline-
2.
▲
by
tzot
2mo ago
And corporate UX/Design teams are eager to modernize those cards; yes they're already flat, but canary yellow is so last century and some glass effects or abolishing the rounded corners will be the next thing.
3.
▲
by
tzot
2mo ago
Do you have a real-world example where we would like to preserve `$?` after the `if` (which `if` specifically branches on the result code of the command it tests)? Where we want to use the actual return code that the `if` did not handle its
4.
▲
by
tzot
2mo ago
I believe you missed a semicolon after `exit 1` and before `}`. `}` closes the opening `{` only at the start of a command (POSIX rules; don't remember now if bash recognizes it when it's just a command argument).
5.
▲
by
tzot
2mo ago
Commodore 64 was quite popular in Europe too, but I believe more successful was the Sinclair Spectrum (and some copycats behind the iron curtain). In my case, too, it was the Speccy and later the Sinclair QL, when it got really affordable;
6.
▲
by
tzot
2mo ago
Exactly. In cases where I expect long-running parallel connections from separate processes to the same sqlite file, I make sure that all read transactions do `BEGIN DEFERRED` so `COMMIT` releases the read locks, and all write transactions d
7.
▲
by
tzot
2mo ago
> I once had to clean up a project where some code had accidentally been writing the strings '1' and '0' to a column which was intended to store booleans (1 and 0). That was not a fun debugging story. So this was a wr
8.
▲
by
tzot
3mo ago
I would use HTTP/1.0 without a need for Connection: close. Unless 1.0 is not generally supported anymore, but this is not the case in my experience.
9.
▲
by
tzot
4mo ago
The debate is if 2000 is the first year of the 21st century or the last year of the 20th century. (btw I agree with the latter)
10.
▲
by
tzot
4mo ago
You say all wrong and then go on about explaining I'm half wrong. I feel there's a pattern (or maybe another joke that whooshed over my head) here but it is obvious to me that I am not your intended stand-up comedy audience and I
11.
▲
by
tzot
4mo ago
I see that and I raise Elastic Tabstops! https://nick-gravgaard.com/elastic-tabstops/
12.
▲
by
tzot
4mo ago
> > If I were to make my own programming language, it would look an awful lot like Python. > I agree, Python allows anyone to write bad code, but makes up for it by running the code slow enough that it can't do real damage. In
13.
▲
by
tzot
5mo ago
I blame font keming for that.
14.
▲
by
tzot
5mo ago
Oh, yeah! And I believe there are not many games which have Linux, Windows and MacOS versions allowing interplay. Several years ago we had one or two LAN parties with hardware running all three operating systems.
15.
▲
by
tzot
6mo ago
I tried this variant of JetBrains Mono and it had the perfect glyph width (reportedly -6%) for my screen and window sizes: NRK Mono Condensed from https://github.com/N-R-K/NRK-Mono . I also agree with almost all of the
16.
▲
by
tzot
6mo ago
Well, we can use memoryview for the dict generation avoiding creation of string objects until the time for the output: import re, operator def count_words(filename): with open(filename, 'rb') as fp: d
17.
▲
by
tzot
6mo ago
For the most simple case of a single job, I use the job number (`[1]` in the example) with %-notation for the background jobs in kill (which is typically a shell builtin): $ cat ^Z[1] + Stopped cat $ kill %1
18.
▲
by
tzot
6mo ago
On scripts that might handle filenames with spaces, I include: IFS=' '' ' Hint: the spaces between the first two apostrophes are actually one <Tab>. This does not affect the already written script (y
19.
▲
by
tzot
6mo ago
> # f2 is ^[OQ; to double check, run `xargs` and then press f2 I remember using `cat -v` before learning that `xargs` exists… or maybe before `xargs` actually existed on systems I used :)
20.
▲
by
tzot
6mo ago
Maybe you understood image as in photo-image instead of image as in memory-image (like disk-image); a glorified memory dump, more-or-less.
21.
▲
by
tzot
6mo ago
I had this issue too, so I remapped Ctrl-W/Shift-Ctrl-W to Ctrl-\/Shift-Ctrl-\ . (Also git operations became two-key sequences, starting with Ctrl-G and that damn Ctrl-K stopped being the shortcut for commit.)
22.
▲
Python VM in Assembly (contributor is Claude)
(github.com)
5 points
by
tzot
7mo ago
|
4 comments
23.
▲
by
tzot
7mo ago
An implementation from zero of a Python 3.12 VM using x86-64 assembly.
24.
▲
by
tzot
8mo ago
I always have been using em-dashes with specific spacing: 1. replacing parentheses —given that the em-dash in pairs for me mark more-relevant-to-the-main content than a parenthesized expression would— so I use the same spacing as `()` 2. re
25.
▲
by
tzot
9mo ago
And some time later, someone shouts “72!” Everyone chuckles except from the one in the corner cell, who laughs so loud and for so long people think he'll have a heart attack. When eventually he stops laughing, someone yells: “Hey Fred,
26.
▲
by
tzot
9mo ago
> Imagine history documentaries where they take an old photo, free objects from the background Even using commas, if you leave the ambiguous “free” I suggest you prefix “objects” with “the” or “any”.
27.
▲
by
tzot
11mo ago
Did you mean “not great, not terrible” or was the change deliberate?
28.
▲
by
tzot
1y ago
> Something about having Cyrillic where the lower-case character set should be, just tickles my hacker heart. We did the same on the ZX Spectrum in Greece for our programs: replace the lowercase latin letters with the keyboard-matching g
29.
▲
by
tzot
1y ago
I totally agree with your gripe about JSON's lack of comments. There were people AFAIK who tried to write a spec with comments (and maybe dangling commas? was it called JSON5?) but by then it probably was too late.
30.
▲
by
tzot
1y ago
> The problem (as felt by me and also as identified by the person you replied to) is that you can't copy-paste/munge some stuff into the right spot and then just let the formatter to fix the indentation. That problem I undestan
More ›