Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
csl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
csl
10y ago
That's rather surpising, coming from someone proficient in C. Perhaps you only need to discover the close connection between C and assembly. The layer between them is really razor thin — by learning a few C idioms (function prologue&#x
62.
▲
by
csl
10y ago
Having taken up x86 assembly coding again after many, many years (last time was on a 486, really), I find 64-bit assembly much easier to get started with compared to 32-bit: Simpler calling convention (on UNIX, at least), no segments, mor
63.
▲
by
csl
10y ago
Unless I misunderstand you, I thought the exact opposite was true: The separation of source from binaries is what made UNIX a success. When C was designed, it allowed one to take the source from one machine to another, disregarding the un
64.
▲
by
csl
10y ago
Note that I don't know anything about SGX, but skimming very briefly through the first part of the below slides [1], it may look like it's just the ability to create — at runtime — special memory regions that are unreadable ou
65.
▲
by
csl
10y ago
You don't need to go to such complicated lengths. Just perform enough tests (as in, a statistically large enough amount) and a distribution will form. That also captures the variability of real world network effects.
66.
▲
by
csl
10y ago
While true for large demos, the 4kb — perhaps even 64kb? — are still written very much by hand.
67.
▲
Commodore 64 assembly coding on the command line
(csl.name)
2 points
by
csl
10y ago
|
0 comments
68.
▲
by
csl
10y ago
Haha, thanks for spotting that! It should lead to the link in the above comment of course.
69.
▲
by
csl
10y ago
The next step is smooth coloring. I've written a post explaining it here: https://csl.name/post/mandelbrot-rendering/ The js code can be tested on https://csl.name/mandelbrot
70.
▲
by
csl
10y ago
FWIW, I implemented some BB code in Python and made some pretty neat plots: https://github.com/cslarsen/busy-beaver Of course I cheat by knowing S(n).
71.
▲
by
csl
10y ago
> Every mathematician has only a few tricks Can anyone in the know illuminate this with some examples?
72.
▲
by
csl
10y ago
I find that pointlessly pedantic. By the same measure, languages that don't offer bignums don't offer integers. Even Lisps need to implement closures in one way or another, and you may be surprised to see how they actually do it.
73.
▲
by
csl
10y ago
Well, as long as the functions are short and the name is descriptive, I always use short names when the meaning is clear. For example strlower, you don't need more than `s` as the parameter name. It will probably be short, so using `le
74.
▲
by
csl
11y ago
But that would only be possible from the same process space, right? So only applicable for plugins etc.? What I'd like to see is hotpatching the function for another process, but I guess that's very hard to do with ASLR. Probably
75.
▲
by
csl
11y ago
I google for "define:word" to check for spelling, but a thesaurus is usually available in the drop down menu. Then I search words with similar meaning to find the word on the tip of my tongue.
76.
▲
by
csl
11y ago
This reminded me of the "Humans need not apply" video, which I strongly recommend, if you haven't already seen it: https://www.youtube.com/watch?v=7Pq-S557XQU Discussion: https://news.ycombinator.c
77.
▲
by
csl
11y ago
And iOS. I often use this feature.
78.
▲
by
csl
11y ago
Thanks. It's definitely a lot of fun. And, as you can see, some things are not hard at all to detect. In fact, I was surprised how little knowledge you need to be able to flick through genome wide association studies (GWAS) and cas
79.
▲
by
csl
11y ago
I've made a 23andMe parser that can report on this. Actually, it covers quite a lot of their health results: https://github.com/cslarsen/dna-traits The test for Alzheimers is here: https://github.com&#x
80.
▲
by
csl
11y ago
Nice. But does it handle extended jumps? I know this is a problem for at least the Byteplay module.
81.
▲
by
csl
11y ago
As a tourist? Go to the north west: Møre og Romsdal and further up north, Lofoten. If you want to visit the national parks, go east from Møre (the mid parts of Norway). I'm Norwegian, and if you want to see postcard nature, you have to
82.
▲
by
csl
11y ago
I wonder if assembler is going to make a come back :). I'm certainly seeing a lot of cool projects that make assembly more accessible, not to mention a lot of good guides on the web. As for myself, I've recently made Python ctyp
83.
▲
by
csl
11y ago
Looks pretty neat, but the demo account is too limited. For instance, it found a problem with my other comment here, but wouldn't tell what (of course, I have to pay up 30 bucks to see what it found). And, I guess it's web-only, w
84.
▲
by
csl
11y ago
Thanks for the kind comment! I'm Norwegian, and I do consider English as one of my primary languages --- but it's not my native language, so it's easy to write something that doesn't sound right to others, not to menti
85.
▲
Ask HN: What do you use for spell checking?
1 points
by
csl
11y ago
|
4 comments
86.
▲
by
csl
11y ago
Exactly! The top-level is actually special in many circumstances. Some people have suggested removing call/cc from Scheme. I don't know if they want to put delimited continuations in its stead. See http://okmij.org/
87.
▲
by
csl
11y ago
Not by default, but I've seen some schemes offer serialization of continuations, for example http://wiki.call-cc.org/eggref/4/suspension
88.
▲
by
csl
11y ago
It says it's just setjmp/longjmp, but later on expands on that, saying you can jump not only up the stack, but down and sideways too (#1). I think the best explanation (mentioned in the article) is that you take a copy of the en
89.
▲
by
csl
11y ago
Seems the holy grail is a really tough 1ms: https://youtu.be/vOvQCPLkPt4?t=52s Hard to see from the videos, but I don't really expect anything better than 10ms. At least, we can hope to see incremental improvements in
90.
▲
by
csl
11y ago
These guys also made a slide deck for the paper: http://www.ux.uis.no/~meling/papers/PaxosTutorial-Meling-OPO...
More ›