Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sesse__
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
511.
▲
by
Sesse__
2y ago
There used to be a site called the Inverse Symbolic Calculator (also a sibling site, Plouffe's Inverter) where you could give in a decimal expansion and it would search for known constants. Unfortunately, it seems to be down (the front
512.
▲
by
Sesse__
2y ago
> Yes, and Forth has been maintaining somehow its ties with aerospace for over 50 years: https://www.forth.com/resources/forth-apps Somehow all of those projects are… really old? A satellite control UI on top of Win
513.
▲
by
Sesse__
2y ago
> FMUL could only be issued every other cycle, which made scheduling even more annoying. Huh, are you sure? Do you have any documentation that clarifies the rules for this? I was under the impression that something like `FMUL st, st(2) ;
514.
▲
by
Sesse__
2y ago
It's only a stack machine in front, really. Behind-the-scenes, it's probably just eight registers (the stack is a fixed size, it doesn't spill to memory or anything).
515.
▲
by
Sesse__
2y ago
Yes, internally fxch is a register rename—_and_ fxch can go in the V-pipe and takes only one cycle (Pentium has two pipes, U and V). IIRC fadd and fmul were both 3/1 (three cycles latency, one cycle throughput), so you'd start an
516.
▲
by
Sesse__
2y ago
> Like the RTX2000 which landed on a comet kind of useless? Yeah, in 1983 he designed a chip that was further developed by others for space usage. > Maybe the controlling radio telescopes kind of useless. Yeah, which he did in 1970. N
517.
▲
by
Sesse__
2y ago
Have you ever looked at how useless Chuck Moore's stuff is? Like, the chip designs are of the type “384 independent Forth chips with tiny amounts of RAM and mediocre interconnects, and if you want to actually do anything with them, you
518.
▲
by
Sesse__
2y ago
> MacOS Instruments is really quite good. It really isn't. It's probably the slowest profiler UI I've ever used (it loves to beachball…), it hardly has any hardware performance counters, and its actual profiling core (xctr
519.
▲
by
Sesse__
2y ago
It is true that Magnus usually prefers offbeat lines to get out of the opponent's preparation. However, they're rarely very sharp or otherwise tactically complicated; on the contrary, he excels at slow maneuvering in strategic pos
520.
▲
by
Sesse__
2y ago
100 cycles would be very low. Many systems have more than 100 ns!
521.
▲
by
Sesse__
2y ago
> and nobody is setting <font> color attributes in a loop. You would be surprised! For instance, MotionMark, one of the main web benchmarks, keeps mutating CSS colors directly on (thousands of) elements to animate them, every frame
522.
▲
by
Sesse__
2y ago
Hi, I work on CSS parser performance, and error handling isn't really a big pain point; if you removed all error handling overhead, you would not be likely to notice any real performance increase in your web page loading. Most of the t
523.
▲
by
Sesse__
2y ago
You may be interested in Dan Luu's own postings on this theory: https://mastodon.social/@danluu/111068309548746696
524.
▲
by
Sesse__
2y ago
The front page (danluu.com) has MM/YY on every post, at least.
525.
▲
by
Sesse__
2y ago
If you ever need to do so again, try gqlplus, which wraps sqlplus to add such quality-of-life features :-)
526.
▲
by
Sesse__
2y ago
“rule 5.1: Ctrl-W should delete the last word […] I can’t think of any exceptions to this other than text editors but if there are I’d love to hear about them!” mysql(1) only links to editline instead of readline, where Ctrl-W by default de
527.
▲
by
Sesse__
2y ago
This is not a new request; many people, including engine authors, have suggested it throughout the years. The problem is that it's seemingly very hard to reliably quantify something like this and propagate it throughout the game tree.
528.
▲
by
Sesse__
2y ago
I am, and you're welcome :-) It very briefly passed 6k, AFAIK. (The interest during Carlsen–Caruana was much higher, but that's just a natural fact of who's playing.)
529.
▲
by
Sesse__
2y ago
That's not really how it works, though, as the counter is reset back to 0 once a capture happens or a pawn is moved (as both of those are irreversible and thus represent some abstract proof of progress towards a resolution of the game)
530.
▲
by
Sesse__
2y ago
Yes and no. The classic Nalimov bases don't, at all (pure DTM). The Syzygy bases that are the most common now do, but in a kind of weird way (DTZ50); they try to get to the next zeroing move (pawn push or piece capture) as soon as poss
531.
▲
by
Sesse__
2y ago
> Although it could of course use some strong existing engine to pick a move in drawn tablebase positions. I assume Stockfish already does that. This is commonly called “swindling” and Stockfish does not do it. There are other engines th
532.
▲
by
Sesse__
2y ago
> interesting, it may be able to reduce the space -- when one sides peice count exceeds the other, a win (or bad play) could be assumed or proven Chess engines already do this, just with much much better heuristics than counting number o
533.
▲
by
Sesse__
2y ago
You definitely do not want to generate your own 7-man tablebases. It took computers with hundreds of gigabytes of RAM over a year to construct. :-) Even 6-man takes quite a while. (345 you can do easily enough now.) You don't need to m
534.
▲
by
Sesse__
2y ago
You're saying you would write the entire hash table four times, with everything duplicated and no reuse? Again: Why? What do you gain compared to one line to suppress a warning?
535.
▲
by
Sesse__
2y ago
And then have a union between the two different kinds of pointers, and a tag to tell which one is in use, then test that tag everywhere? Why? What good does it bring for that extra complexity?
536.
▲
by
Sesse__
2y ago
I would assume that is because the hash table takes in a “hash this key” function pointer and a “compare these keys” function pointer, and those must contain the size for variable-length keys. So even if your user-supplied functions know th
537.
▲
by
Sesse__
2y ago
Ah, of course, in C mode it's different. (I nearly always use C++ mode, where at least GCC 10 happily takes it.)
538.
▲
by
Sesse__
2y ago
It's an idiom for telling the compiler “don't give a warning on this argument not being used, I know about it”. Not all compilers will heed it. Other choices include e.g. __attribute__((unused)) (GNU), [[maybe_unused]] (C++17/
539.
▲
by
Sesse__
2y ago
FWIW, it's on a separate layer that's not affected by z-index: https://developer.mozilla.org/en-US/docs/Glossary/Top_layer
540.
▲
by
Sesse__
2y ago
> Crown Trick and Crypt of the Necrodancer/Cadence of Hyrule straddle the gap, not quite traditional and not quite "lite." I always felt like an important aspect of “lite” was whether death was real permadeath or whether g
More ›