Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
professoretc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
professoretc
2y ago
The problem is that if you call another function, you won't know whether that function is uses any instructions that require alignment. So in practice, only leaf functions can skip stack alignment. The ABI states that the stack point
32.
▲
by
professoretc
2y ago
For my beginner programming class, I have them use a script `compile` which handles compilation and linking, while also enabling enabling all the warnings/errors I think are helpful, and also doing the above redirection. An absolute be
33.
▲
by
professoretc
2y ago
A typical grocery store will carry on the order of 40,000 unique products. Costco is hard limited to a max of 3,700 unique products. If a store wants to bring a new product in, something must be rotated out. This also means that if a prod
34.
▲
by
professoretc
2y ago
TurboVision was distributed as source with some of the Borland tools, and later open-sourced, I think. So it's not a rewrite, just a port to non-DOS terminals.
35.
▲
by
professoretc
2y ago
The implementation of inheritance (more specifically, polymorphism and dynamic dispatch via vtables) is a problem in games, because it adds an extra layer of indirection, and screws with cache locality. But the semantics of inheritance
36.
▲
by
professoretc
2y ago
Is that article correct, that mixed DPI on Wayland works by just rendering everything to a virtual screen whose resolution corresponds to the maximum DPI of any physical screen, and then downscaling all the other screens?
37.
▲
by
professoretc
2y ago
The journalist who wrote the article is an Israeli Jew.
38.
▲
by
professoretc
3y ago
It's worth pointing out how different (and better) Jedi Knight's morality system is from the "Bethesda model", in which you play as good/bad but at the end of the game, it doesn't matter and you get to make the
39.
▲
by
professoretc
3y ago
My brother and I made a mod in which you played as an Ugnaught (the little guys running around cloud city) wielding a wrench instead of a lightsaber. For some reason we thought it was hilarious to replace the main villain with Bob Saget.
40.
▲
by
professoretc
3y ago
Yeah, but if every project, no matter how small, required you to spin up and maintain a full Postgres install, surely you'd start thinking, there has to be something easier than this... The problem with Git is the same kind of problem
41.
▲
by
professoretc
3y ago
You're essentially correct; in JS, if you write for(var i = 0; i < arr.length; ++i) ... then the array's length is not read once at the beginning of the loop; it is read every loop iteration. So if the code
42.
▲
by
professoretc
3y ago
It's kind of weird that these days, many (most?) projects use Cmake directly as their build tool. They don't generate a VC or Xcode project and then work from that; they generate a VC project and then immediately build it . The
43.
▲
by
professoretc
3y ago
In other words, it's not just as simple as "figure out how to compile things on this system, once, and then reuse that information in the future". Different projects can be compiled with different options, cross-compilation
44.
▲
by
professoretc
3y ago
So all of Fabrice Bellard's projects ( https://bellard.org/ ) should not exist?
45.
▲
by
professoretc
3y ago
> I agree with it only in principle; it seems ripe for injustice in all practical details. Yep, instead of "you definitely get out of prison after X years have passed" you instead get "you get out of prison in 21 years! (o
46.
▲
by
professoretc
3y ago
Isn't caffeine one of the most bitter-tasting substance out there? Like, it's used to measure bitterness.
47.
▲
by
professoretc
3y ago
Costco encourages the sample vendors to give out as many as you want.
48.
▲
by
professoretc
3y ago
> I don't know of a platform where a dereferencing of NULL (which happens in a separate translation unit, which is already compiled and linked, and will not be subject to LTO and other optimisations) within the various read/wr
49.
▲
by
professoretc
3y ago
Coming soon: "HP reserves the right to retain or sell your printed documents for the purposes of training AI."
50.
▲
by
professoretc
3y ago
You linked to the wrong section (again); that covers how ATC should handle unmanned balloons, not what the balloon operator should do. You probably meant [FAR part 101]( https://www.ecfr.gov/current/title-14/chapter
51.
▲
by
professoretc
3y ago
That entire section is about amateur rockets; nothing there applies to balloons.
52.
▲
by
professoretc
3y ago
LLM managers will almost certainly not be hooked up to any API that would allow them to actually give raises. Fire people, sure.
53.
▲
by
professoretc
3y ago
I met Vaughan Pratt at a math seminar a few years back, where he was talking about his current interest, Chu spaces. While we were waiting in line to get coffee, with the coffee stations labeled "regular" and "decaf", Pr
54.
▲
by
professoretc
3y ago
It's rather ironic that the one old file format I've tried to open in LibreOffice, namely, old StarOffice 5 files, do not open. (LibreOffice forked from OpenOffice, which was the open-sourcing of StarOffice.) The converters were
55.
▲
by
professoretc
3y ago
It doesn't "corrupt" them; it converts them to JSON strings. It's in the name. Expecting `JSON.stringify` to throw in those situations would be like expecting `str` in Python to throw.
56.
▲
by
professoretc
3y ago
> I'm always saying that good way to learn language patterns and idioms is to look into standard libraries implementations. Why would that be true? When you write a library, you are writing code to cover all possible uses; everyth
57.
▲
by
professoretc
3y ago
Please drink verification can.
58.
▲
by
professoretc
3y ago
There's a donut shop near me named Loi's Donuts. Not Lois's or Lois'. Yes, the owner's name is Lois, not Loi. I guess the apostrophe just means, Hey, there's an "S" coming up!
59.
▲
by
professoretc
3y ago
The rule for college/uni I've always heard (and repeated to my students) is 2 hrs outside of class for every hour in class. So a 4 unit (= 4 in-class hours/week) class should have 8 hrs of outside time dedicated to studying
60.
▲
by
professoretc
3y ago
I've heard O(n²) described as the most dangerous asymptotic complexity, because it seems fine for small testing inputs but falls down when you throw real-world -sized data at it.
More ›