Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jcranmer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
481.
▲
by
jcranmer
1y ago
Right now, there are approximately five languages that are presumed to be acceptable for core applications in the base system: C, C++, Shell (which probably means specifically bash), Perl, and Python. The most recent language to be added to
482.
▲
by
jcranmer
1y ago
My blog is at quetzalcoatal.blogspot.com, but it has been some time since I've written a post. When I do get around to writing it up, I'll probably advertise it here on HN.
483.
▲
by
jcranmer
1y ago
The explanation of the symbols is largely found here: https://www.sandpile.org/x86/opc_enc.htm Essentially, the uppercase letter of an operand is a combination of the operand type (immediate, register, memory) along wi
484.
▲
by
jcranmer
1y ago
The GP here appears to be on Windows, given their reference to PowerShell. And on Windows, the path separator is ";", not ":". One of the things I've noticed is that people trying to help the true beginners vastly o
485.
▲
by
jcranmer
1y ago
This reminds me that at some point I should write up my exploration of the x86 encoding scheme, because a lot of the traditional explanations tend to be overly focused on how the 8086 would have decoded instructions, which isn't exactl
486.
▲
by
jcranmer
1y ago
And the images also show that "small piece of hardware" is connected to lots of chonky ribbon connectors that make IDE cables look slim.
487.
▲
by
jcranmer
1y ago
The Øresund Bridge is a combined road-rail bridge. (As an interesting aside, the Swedish railroad system drives on the left, while the Danish one drives on the right, so the trains have to cross to the other side after crossing the strait.)
488.
▲
by
jcranmer
1y ago
It is definitely way too easy to accidentally confuse "x is true" and "x is proven to be true" on topics of undecidability, and this is one of those times where the answer is in fact obvious, but it takes you 15 minutes
489.
▲
by
jcranmer
1y ago
The text is: > we "do not, and will not during the term of this financial assistance award, operate any programs that advance or promote DEI, or discriminatory equity ideology in violation of Federal anti-discrimination laws."
490.
▲
by
jcranmer
1y ago
With a strong Anti-SLAPP statute, the person who files the lawsuit is on the hook for the defendant's legal fees, which would (in theory) let the defendant hire an attorney on contigency fees. Of course, one of the other issues is ther
491.
▲
by
jcranmer
1y ago
Look, I work on compilers, and I have no idea what you're even trying to refer with "planned obsolescence" here. And 5/10 years is a very short time in compiler development planning! Prototypeless-functions in C were d
492.
▲
by
jcranmer
1y ago
Honestly, assembly language bitrots far faster than other programming languages. In my lifetime, the only thing that really comes close to qualifying as "compiler language syntax/compiler planned obsolescence" is Python 2 to
493.
▲
by
jcranmer
1y ago
FWIW, the first test in the coreutils test suite covering the `date -r` case was added... 5 hours ago: https://github.com/coreutils/coreutils/blob/master/tests/dat... I don't know what the code
494.
▲
by
jcranmer
1y ago
If you're the maintainer of OpenBSD, then implementing coreutils in a given language is a necessary requirement for it to be considered a viable systems language: https://marc.info/?l=openbsd-misc&m=151233345723889&
495.
▲
by
jcranmer
1y ago
It's been a long time since I last stared at DER, but my recollection was for the ASN.1 schema I was decoding, basically all of the tags ended up not using the universal tag information, so you just had to know what the type was suppos
496.
▲
by
jcranmer
1y ago
> You can parse DER perfectly well without a schema, it's a self-describing format. ASN.1 definitions give you shape enforcement, but any valid DER stream can be turned into an internal representation even if you don't know the
497.
▲
by
jcranmer
1y ago
I'm hardly a connoisseur of DER implementations, but my understanding is that there are two main problems with DER. The first is that the format isn't really parseable without using a schema, unlike (say) XML or JSON. This means y
498.
▲
by
jcranmer
1y ago
I'm extremely uncertain of my history here, but my recollection is that SSA wasn't seen as practical until the development of the dominance frontier algorithm for inserting phi nodes, which seems to be 1991.
499.
▲
by
jcranmer
1y ago
SSA isn't about saying mutation is evil. It's about trivializing chasing down def-use rules. In the Dragon Book, essentially the first two dataflow analyses introduced are "reaching definitions" and "live variables&
500.
▲
by
jcranmer
1y ago
> While 10 LOC vs 50 LOC doesn’t matter, when commas enter the number, it’s a safe bet that things have gone off the rails. There are times when even a 1,000 LOC function is the better solution. The best example I can think of involve a
501.
▲
by
jcranmer
1y ago
> New York’s climate is pretty harsh: you have annual freeze/thaw cycles, lots of rain and ice, plus high winds and an annual hurricane season. In terms of freeze/thaw cycles, it's not really about having annual cycles tha
502.
▲
by
jcranmer
1y ago
The judge is angry here because the US government indicated it agreed to these conditions during the oral hearing on the order, and is now arguing that it doesn't need to abide by what it orally agreed to because it's not in the w
503.
▲
by
jcranmer
1y ago
Condo associations are generally HOAs.
504.
▲
by
jcranmer
1y ago
There's a few variables which can make it much worse. The first is how much of the capital expenditures are being fueled by debt that won't be repaid, and how much that unpaid debt harms lending institutions. This is fundamentally
505.
▲
by
jcranmer
1y ago
In my experience, the biggest wins in syntax highlighting come from just a few wins: make comments a different color, make strings a different color, and if you've got something like shell where strings can contain embedded variable re
506.
▲
by
jcranmer
1y ago
> aren't they just annotations? proper use of mutexes and lock ordering aren't that hard, they just require a little bit of discipline and consistency. Spatial memory safety is easy, just check the bounds before indexing an arr
507.
▲
by
jcranmer
1y ago
What's wrong with burning trash? It means there's much less material to send to landfills, plus it's one of the most economical ways to recycle metal from household waste streams.
508.
▲
by
jcranmer
1y ago
Half of them have, actually. The COVID response was heavily based off of the SARS response. The major difference with COVID is that it's the first time first world countries were asked to employ standard public health responses in many
509.
▲
by
jcranmer
1y ago
We've had, in this century, SARS, swine flu, MERS, ebola (× like 4), mpox (×2 apparently), Zika virus, and COVID-19. AIDS is a pandemic that's been going on since before I was born. Pandemics and pandemic scares are really friggi
510.
▲
by
jcranmer
1y ago
Programming in assembly isn't hard, it's just incredibly tedious. Doing manual linearization of an expression DAG, or manual register allocation, or manual control-flow layout very rarely adds any extra value compared to what the
More ›