Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xnorswap
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
511.
▲
by
xnorswap
2y ago
> For the first time in the history I'll charitably assume you meant first time in post-war history. USA as "The Global leader" didn't emerge until after Europe was ravaged first by The Great War and then WWII. No-one
512.
▲
by
xnorswap
2y ago
The "How to build a boardgame" infographic looks like half my linkedin "feed" now, but a boardgame instead of random basic programming / recruimentment / sales topic. Feed is in quotes because my feed seems to
513.
▲
by
xnorswap
2y ago
Counterpoint: Natural sorting likely will be orders of magnitude slower sorting than ordinal sorting. For most situations, the better solution is storing the index separately to the name in another column or in metadata. But for some stores
514.
▲
by
xnorswap
2y ago
I hope this is satire? Just in case it's serious or semi-serious: It's utterly ridiculous to worry about 10k date problems given we first have these: 2038 problem ( Signed unix time overflow ) 2069 problem ( strptime() parsing ) 2
515.
▲
by
xnorswap
2y ago
I've seen far too many IVs statically declared as "<Product>IV" in my lifetime. Bonus marks for when the key was also "<Product>Key".
516.
▲
by
xnorswap
2y ago
Neat puzzle. My first wrong answer was an international spelling issue. It would be nice if it accepted then silently corrected based on equivalent international spellings, but I can also understand why it doesn't, sometimes it might b
517.
▲
by
xnorswap
2y ago
LLMs ought to be good at generating simple substitutions too, but they're not: https://claude.ai/share/9495246c-b77a-496e-8643-dbc5ec58dbcb It tries but it fails to both generate and apply a simple substitution. I
518.
▲
by
xnorswap
2y ago
Sparklines are not bar graphs, they're lines, hence the name. If you have a copy of Tufte*, you can find them on page 171. Tufte has written up a history here: https://www.edwardtufte.com/notebook/sparklines-histor
519.
▲
by
xnorswap
2y ago
> Security patches and critical bug fixes will continue for a transition period. They're not explicit for how long this "transition period" will be, it sounds like a year. We've seen this before with IdentityServer, a
520.
▲
by
xnorswap
2y ago
It won't get you to the moon, but you can squeeze out a little more distance by arranging them corner to corner.
521.
▲
by
xnorswap
2y ago
So much continual effort wasted when for over 20 years we've had XML. XML still works well as a configuration format. Is it verbose? Very much so, but it ticks all the boxes: - No ambiguity - Typed - Quick to parse - Has Schemas that a
522.
▲
by
xnorswap
2y ago
We have a few such odd arrangements, such as the "London Bus Museum", which isn't in London but is in fact entirely within a completely different museum, the Brooklands museum. Operationally independent, although they have be
523.
▲
by
xnorswap
2y ago
Isn't this what Jekyll solves? Posts are all written as markdown, styling and layout are centralised with layout HTML pages and CSS. I believe indexes can be auto-updated via post metadata. And it's all static pages once generated
524.
▲
by
xnorswap
2y ago
I haven't, I wasn't aware of that attribute. I would gratefully accept a PR with such a benchmark case. Edit: I've now tried it, and it reduced overhead a small amount. (e.g. Average 7.5 ns vs 8 ns for the 10-byte array )
525.
▲
by
xnorswap
2y ago
The comparison isn't to prove that .NET is always faster than C in all circumstances, it was to demonstrate that the advice to call out to C from .NET is outdated and now worse than the naive approach. Can C wizards write faster code?
526.
▲
by
xnorswap
2y ago
Thank you, it was indeed a "garbled quoting" of that article. I am generally terrible at explaining things. Trying to improve my ability to explain things was part of my motivation for taking up blogging.
527.
▲
by
xnorswap
2y ago
Outside of the 10 elements case, I don't think it's an overhead issue, the overhead is surely minuscule compared to the 1GB of data in the final tests, which also show a large difference in performance. I suspect it's that th
528.
▲
by
xnorswap
2y ago
I tried that but cut it from the code because it had the same performance.
529.
▲
by
xnorswap
2y ago
No problem, I've raised the issue as https://github.com/dotnet/runtime/issues/114047 .
530.
▲
Span<T>.SequenceEquals is faster than memcmp
(richardcocks.github.io)
148 points
by
xnorswap
2y ago
|
102 comments
531.
▲
by
xnorswap
2y ago
A more meaningful adventure into microbenchmarking than my last. I look at why we no longer need to P/Invoke memcmp to efficiently compare arrays in C# / .NET. Old stackoverflow answers are a dangerous form of bit-rot. They get pi
532.
▲
by
xnorswap
2y ago
Similar. I spent the weekend writing my first technical blog post. I was finally proud enough of something I'd gone through to write about and share. Submitted it to this place and not a single upvote or comment. I'm okay with tha
533.
▲
by
xnorswap
2y ago
What about the cases where the AI doesn't hallucinate, produces working code, but the code is just about good enough? I've just written about that exact scenario. A shoddy piece of code that's just about okay: https:/&#
534.
▲
Fixing a Password Generator
(richardcocks.github.io)
1 points
by
xnorswap
2y ago
|
0 comments
535.
▲
by
xnorswap
2y ago
What's going on with the US government? They're doing so many things which could normally be described as "Cartoonishly Self Destructive" that it's hard to keep up with their actual objectives. What's even less
536.
▲
by
xnorswap
2y ago
Also it's hard to state how much, and especially when it comes to transport, that London isn't England. London is it's own bubble with "Transport for London" running all transport. It has lots of investment, cheap b
537.
▲
by
xnorswap
2y ago
I don't like to advertise this just in case it gets fixed, but I have that same experience for Twitch. I don't run an adblocker and yet as long as I'm logged in, I get no ads. Not in the website nor in the mobile app. I don&#
538.
▲
by
xnorswap
2y ago
The mass of a satellite is already trivial compared to the mass of the moon.
539.
▲
by
xnorswap
2y ago
What you've said is a re-statement of the title, how is it clickbait?
540.
▲
by
xnorswap
2y ago
I too have worked for a European company bought out by a large American company. They too didn't understand our culture. They completely ignored the parts of our business that were scalable and taking off, and focused instead on nebulo
More ›