Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
TOGoS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
31.
▲
by
TOGoS
1y ago
> why is having more than one account an "exception" at all? That's not an error or fail condition It is if the caller is expecting there to be exactly one account. This is why I generally like to return a set of things fr
32.
▲
by
TOGoS
1y ago
This is fine and interesting, but what I think is lacking in S-expression isn't funky vertical syntax, but a way to directly represent objects that are not lists. Otherwise one needs to invent some representation on top of S-expressio
33.
▲
by
TOGoS
1y ago
Some people are wizards with the debugger. Some people prefer printfs. I used to debug occasionally but haven't touched a debugger in years. I'm not sure exactly why this is, but I'm generally not concerned with exactly wha
34.
▲
by
TOGoS
1y ago
That's why you put enough context in each packet that nobody gets confused if the order changes or some get missed.
35.
▲
by
TOGoS
1y ago
I've used systems that did this (some TypeScript TUI library comes to mind) and was similarly confused. I think what actually happened was that the x function/getter/whatever had some 'magic' in it that let it comm
36.
▲
by
TOGoS
1y ago
Back when I was a lad we called that "a computer program"
37.
▲
by
TOGoS
1y ago
I assumed it meant that the emulator is written as a ROM that loads itself. But that's probably not what it means. Kids throw words around meaning all sorts of strange things these days.
38.
▲
by
TOGoS
1y ago
Why not? Git should handle this just fine. And you can always make details-in-second-parent merge commits or squash them down later, if you don't like the whole history having that level of detail.
39.
▲
by
TOGoS
1y ago
In summary: The more layers of interpretation your `eval` function needs to do (assumption of source language, tokenization/parsing rules, symbol definitions, etc), the less well-defined the semantics are. So on the less-well-defined e
40.
▲
by
TOGoS
1y ago
Ostensibly, making French cleats to put on the walls around my house to hang all my computers (and other stuff) on. In practice, writing journal entries about why I can't seem to get myself to make all these French cleats that I suppos
41.
▲
by
TOGoS
1y ago
The square brackets aren't really analogous to Lisp's parentheses; REBOL / RED use parentheses for the same purpose, if you need them. The square brackets are more like square brackets in Factor or Joy; they are 'quotat
42.
▲
by
TOGoS
1y ago
I wrote a paper on REBOL back in college. It is very interesting, but the syntax is definitely weird. You might think of the function call syntax as being sort of Forth-like, but with the tokens in reverse order. So like a Lisp, but with
43.
▲
by
TOGoS
1y ago
This is a wacky, seemingly out-of-place philosophical comment, yet I have had similar thoughts, so I give you an irreverent upvote.
44.
▲
by
TOGoS
1y ago
This is something I try to do every day. "What would future me like me to have gotten done right now?" Future me doesn't really care if I spent 3 hours playing Minecraft, but they would be pleased if that shelf I've bee
45.
▲
by
TOGoS
1y ago
Agreed. I even voted for the fall to last a bit longer, but instead we got ground.
46.
▲
by
TOGoS
1y ago
The controlled opposition party makes dang sure that the only other option in major elections is "more of the same". (i.e. Democrats generally fail to clean up whatever mess the last Republican administration made, continue funnel
47.
▲
by
TOGoS
1y ago
I'd start by standardizing the interface between plastic storage tubs and their lids.
48.
▲
by
TOGoS
1y ago
import { SystemDBus } from "npm:@clebert/node-d-bus@1.0.0"; works surprisingly well, in my experience.
49.
▲
by
TOGoS
1y ago
But the numbers next to their names aren't big enough. We're gonna have to gut social services and environmental protections in an attempt to pump those numbers up. Oh and definitely everything we can to cast unions in a bad lig
50.
▲
by
TOGoS
1y ago
Some music control using Wii balance boards thing: https://gitlab.com/TOGoS/SG-P27 So far this has means orchestrating a set of processes just to talk to bluetoothd, automatically connect to boards, guess which /d
51.
▲
by
TOGoS
1y ago
Don't even need to 'distribute' the wealth[1]. Just burn it. It's the inequality itself that causes problems--out-of-touch billionaires having the power to make the rest of us do their bidding, whether it makes any dan
52.
▲
by
TOGoS
1y ago
Every time I hear about D it sounds awesome. I actually used it to prototype an image collage-composing algorithm which I then rewrote in Scala[1], and the D version might have been nicer to write. The only reason I didn't write more
53.
▲
by
TOGoS
1y ago
They did touch on that. > You might think that this issue is just about trying to cram everything onto a single line, but frankly, trying to move away from that doesn’t help much. It will still mess up your git diffs and the blame layer.
54.
▲
by
TOGoS
2y ago
Unison of course works this way, as has been mentioned. I like Deno for similar reason. It's a coarser level of granularity, and not explicitly content-addressed, but you can import specific versions of modules that are ostensibly imm
55.
▲
by
TOGoS
2y ago
> Application developers can avoid both current warnings and future restrictions by selectively enabling the ability to mutate final fields where essential. /me raises hand Maybe if you want to mutate a field, don't mark it `fi
56.
▲
by
TOGoS
2y ago
I wrote a lot of applets back in the day for little graphics experiments and such, somewhat inspired by Ken Perlin's homepage[1]. I found that it's quite possible to make applets that load fast and run fast if you care about thos
57.
▲
by
TOGoS
2y ago
Of course you could also "offset your feet" until they're past the end of the last thing, and then you've counted the number of things. But the offset of the thing itself (as opposed to that of your feet) could be consi
58.
▲
by
TOGoS
2y ago
Not sure about old Mac OS, but I think HTML canvas works that way.
59.
▲
by
TOGoS
2y ago
I like this. I feel like "offset" hints at the reason for starting at 0. "How far do you have to offset your feet (from the beginning of whatever space we're talking about) before you're touching the thing in ques
60.
▲
by
TOGoS
2y ago
He was right. If the first fencepost is centered at x=0 and the second at x=1, and you want to give the rail in-between some identifier that corresponds to its position (as opposed to giviung it a UUID or calling it "Sam" or some
More ›