Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alcover
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
alcover
3y ago
> Finance your golden years - with a swarm of dark net glider guns! Hearing this in the zeppelin ads speakers in Blade Runner. I would gladly read your literary production.
62.
▲
by
alcover
3y ago
You are right. My reply was a bit silly. Now thanks to alignment you could use spare bits in the pointer to afford bigger lengths. struct Array{int64_t ptr:60; uint64_t len:34, cap:34;}
63.
▲
by
alcover
3y ago
struct Array{void *ptr; uint64_t cap;} sizeof(struct Array) //16
64.
▲
by
alcover
3y ago
"The Hound half rose in its kennel and looked at him with green-blue neon light flickering in its suddenly activated eyebulbs. It growled again."
65.
▲
by
alcover
3y ago
This one struck me : Future Now - Interview with J.G. Ballard. https://www.youtube.com/watch?v=RELjQkAI1RA
66.
▲
by
alcover
3y ago
> She is saying goodbye now. Exactly (or at the time ). Many submissions here attain shortness by eliding this important precision.
67.
▲
by
alcover
3y ago
> "Elle a tant de fois dit au revoir" Nice! And sounds better. To be nitpicking, I'd propose "Elle a tant dit au revoir avant" (9 also), which retains the original 'before'.
68.
▲
by
alcover
3y ago
> single syllable in some languages but requires a lot of context or explanation in other languages then don't these other langs do a 'bad job' at compression ? > That doesn't seem feasible In general maybe not. Bu
69.
▲
by
alcover
3y ago
Does this not lack the ' before then ' nuance ?
70.
▲
by
alcover
3y ago
syllable count english 10 - She said goodbye too many times before latin 6 - nimium valedīxit polish 7 - Zbyt często się żegnała german 10 - Sie hat sich schon zu oft verabschiedet french 11 - Elle a dit au r
71.
▲
by
alcover
3y ago
Oh yes! It touches language and compression, both dear subjects to programmers. If the accepted answer stands, that's remarkable. I wonder how one could measure a language efficiency. Maybe syllable count ? But one would need a sort of
72.
▲
by
alcover
3y ago
See also https://news.ycombinator.com/item?id=31294316 ...about being locked out of your appartment when your phone is discharged.
73.
▲
by
alcover
3y ago
That is my dream too. I would be SO happy to sit outside and think and code for many hours without worrying on battery life. No need for a powerful CPU. I just need to edit my code, see if it works and take notes. I want to hack on my compi
74.
▲
by
alcover
3y ago
(Hoping you see this. HN's lack of reply-alert is not super practical) > What is the target type for x+x? There's no 'target' except the assigned 'y'. The compiler would just do y = CLIP((x+x)+y) with
75.
▲
by
alcover
3y ago
Ok that's nice. Would one call that a dependent type ? I guess I would naively implement this by appending %10 to all assignments to a Whatever_Name .
76.
▲
by
alcover
3y ago
> What would e.g. happen if you mix both types? Like in int32 y=INT_MAX mod32 x=1 y+=x ? You'd get y==INT_MAX . Or did you mean something more involved ? > you can overload the + operator I fail to see the need. (Sorr
77.
▲
by
alcover
3y ago
So, Ada modular types are just like C uint ?
78.
▲
by
alcover
3y ago
> Some languages will wrap the value around, and some will actually abort What if a language had clamped int and modular mod types ? Overflow on mod would work as advertised and, if you disabled abort , overflow on int would be
79.
▲
by
alcover
3y ago
Greetings, Professor Falken. (SMILING FACE)(RED HEART)
80.
▲
by
alcover
3y ago
No problem ! > Imagine being from a country where a language’s built in Strcmp doesn’t work? Problem is it's seemingly a massive headache. Citing the article, "Unicode handling is always best left to a library". I could bu
81.
▲
by
alcover
3y ago
> If I can write "foo".contains('o') [..] but then you pretend you don't have strings, [..] C has strings By your logic, couldn't I pretend then to have strings insomuch as C when "foo".contains(&
82.
▲
by
alcover
3y ago
It's a dialect of C, so somewhere between low and mid. > handle at least some encodings What else could it be than Utf8 ? > locale-sensitive casing and collating, and grapheme-cluster access (note that this depends on t
83.
▲
by
alcover
3y ago
I mean the reserved words in my lang are in English, and the user-created identifiers must be ASCII at the moment. I could extend the latter to some wider range but my question was more about providing built-in Unicode string handling. My B
84.
▲
by
alcover
3y ago
Currently working on a language, I feel dizzy after reading this. My stdlib will provide a (byte) Buffer class with basic low-level methods but I feel like iterating through it in fancy ways should be the concern of the user or 3rd-party li
85.
▲
by
alcover
3y ago
Imagine the amount of GWh saved if JS had been static-typed with inference.. For decades billions of processors have been burning watts to dereference JSValue *val , then switch() on the union tag (or something like that).
86.
▲
by
alcover
3y ago
Agreed. First thing I frowned at when considering Go. (Plus it looks a bit messy. foo.Init() ?). That and reserving the verb ` make `..
87.
▲
by
alcover
3y ago
> Strings in C are 0-terminated char arrays To be pedantic, they're pointers to char . Nothing more. Calling them array confuses non-C coders. The length is just an unenforced contract and has to be passed.
88.
▲
by
alcover
3y ago
"Les relations humaines deviennent progressivement impossibles" Houellebecq - Extension du domaine de la lutte
89.
▲
by
alcover
3y ago
pay someone God.. that's indeed a crushing, last resort kind of advice. On the physical side of companionship there is the paid-for "Girlfriend Experience" in the same vein. These are truly depressing considerations
90.
▲
by
alcover
3y ago
Re: Pouzin, datagram, CYCLADES This was it, even more so than Minitel. France had an experimental, working Internet in the 70's... That was shutdown over bureaucratic disputes. What a monumental waste.
More ›