Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spyrja
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
spyrja
2mo ago
It really wasn't a bad operating system. In fact it kind of blew its (lame) Win9X predecessors out of the water! I ran on Win2000 for years before finally switching to Linux. Of course Microsoft ended up going a different course with i
2.
▲
by
spyrja
7mo ago
Welp, looks like they're back up. Home page and notifications are loading just fine now.
3.
▲
by
spyrja
8mo ago
Actually, the introduction of Old Norse in Britain began in the early 5th century and by the time of Beowulf, Old English was still more than 90% a Nordic language. The Norman invasion of 1066 changed that dramatically (as Old French became
4.
▲
by
spyrja
8mo ago
When the Angles, Jutes, and Saxons arrived in England around fall of Rome in the early 400s, the "official" language was Latin (as Britain had been a Roman colony since 43 AD) whereas locals spoke various Celtic dialects. The newc
5.
▲
by
spyrja
8mo ago
Not really. It does however help drive home the point that such interjections were unlikely to be used by speakers of Nordic languages in order to begin a tale. (On the other hand in Latin and Celtic traditions, interjections were widely us
6.
▲
by
spyrja
8mo ago
Nevertheless I do think it is safe to say that such interjections were used, at least on a day-to-day basis. (Bear in mind that relatively few Old English texts survive to this day and almost certainly not many were produced to begin with.
7.
▲
by
spyrja
8mo ago
I agree with Dr. Walkden here. While it was used as an interjection at times (just as it is today when someone exclaims, "What?!") in the context of the opening line of Beowulf "hwæt" is more likely being used to reformu
8.
▲
by
spyrja
8mo ago
To be fair, the origins of "hello" go back much further than 600 years. Variations of it appear in Old Icelandic from almost 1000 years ago, and if you look at Old English texts from hundreds of years before that you will find gre
9.
▲
by
spyrja
8mo ago
Most LLM's these days tend to be strongly "left-leaning". (Grok being one of the few examples of one that leans "right".) Personally I'd prefer if they were trained without any political bias whatsoever, but of
10.
▲
by
spyrja
10mo ago
FWIW it's a fairly straightforward algorithm. In C++: bool balanced(const string& text, const string& open, const string& close) { size_t length = text.size(), brackets = open.size(); assert(close.size() == brac
11.
▲
by
spyrja
11mo ago
Next up: 64-bit booleans for the win!
12.
▲
by
spyrja
11mo ago
And for the love of God, please don't do 0[src].
13.
▲
by
spyrja
1y ago
I couldn't get it to do much. Also noticed a subtle bug here: next = compile(read(buffer), cons("halt", NULL)); C doesn't guarantee the order in which arguments to a function are processed. Since 'cons'
14.
▲
by
spyrja
1y ago
Or maybe we can know them equally well? The function f(x) = x(0^(sin(πx)^2)) for example "requires" infinities, but only returns integer values.
15.
▲
by
spyrja
1y ago
OK, but surely only because the exact value of 1 exists in the first place.
16.
▲
by
spyrja
1y ago
Ah, good catch. I forgot to scale the point properly! How does the updated sketch look? EDIT: Plotting it out as a point cloud seems to confirm your suspicion. Without scaling: https://editor.p5js.org/spyrja/sketches&#x
17.
▲
by
spyrja
1y ago
That's a neat approach! So basically something like this: https://editor.p5js.org/spyrja/sketches/eYt7H36Ka
18.
▲
by
spyrja
1y ago
Kind of? If you want the points to be more randomly-distributed, something like this would probably be a better approach: https://editor.p5js.org/spyrja/sketches/eYt7H36Ka
19.
▲
by
spyrja
1y ago
In this particular case it was simply a matter of not enough corner cases defined. I was however using property-based testing, doing things like reversing then un-reversing the UTF-8 strings, re-ordering code points, merging strings, etc fo
20.
▲
by
spyrja
1y ago
It's just a convention I use for personal projects. Back when I started coding in C, people often just opted to go with one or two character variable names. I chose three for locally-scoped variables because it was usually enough to id
21.
▲
by
spyrja
1y ago
Well it is a pretty old codebase, the whole project is written in C. I haven't done any Rust programming yet but it does seem like a good choice for modern programs. I'll check out the link and see if I can glean any insights into
22.
▲
by
spyrja
1y ago
Just as an example of what I am talking about, this is my current UTF-8 parser which I have been using for a few years now. bool utf_append_plaintext(utf* result, const char* text) { #define msk(byte, mask, value) ((byte & mask) =
23.
▲
by
spyrja
1y ago
True. But then again, backward-compatibility isn't really such a hard to do with ASCII because the MSB is always zero. The problem I think is that the original motivation which ultimately lead to the complications we now see with UTF-8
24.
▲
by
spyrja
1y ago
I really hate to rant on about this. But the gymnastics required to parse UTF-8 correctly are truly insane. Besides that we now see issues such as invisible glyph injection attacks etc cropping up all over the place due to this crappy so-ca
25.
▲
by
spyrja
1y ago
It doesn't appear to, but you could always add this to the included common.lisp file: (define Y (lambda (f) (lambda args ((f (Y f)) . args))))
26.
▲
by
spyrja
1y ago
Well exactly. The only variability would be on a per-resource basis, so the server-side calculations would likely be quite manageable. The RESOURCE_ID could be a simple concatenation of the name, size, and last-modification-date of the reso
27.
▲
by
spyrja
1y ago
Yep, exactly. NAN's truly are a great example of just how weird an edge case can get too! #define isNan(X) ((X) != (X))
28.
▲
by
spyrja
1y ago
Another approach. Require a hash(RESOURCE_ID, ITERATIONS, MEMORY_COST) for each and every resource request. Admittedly that might get a little tricky considering that you don't want to bog down actual users with sluggish page loads. Bu
29.
▲
by
spyrja
1y ago
Way back when I actually perused through quite a bit of Stepanov's STL code and stumbled on that very thing, the comparison operator semantics. I remember thinking it very clever of him to approach it that way and it hadn't even c
30.
▲
by
spyrja
1y ago
Doing a bit of digging seems to confirm that, considering that git actually does remove a lot of redundant files during the garbage collection phase. It does however store complete files (unlike a VCS like mercurial which stores deltas) so
More ›