Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adrusi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
106 ms
·
871.
▲
by
adrusi
11y ago
Right, why write '{ "foo": "bar" }' when you could write JSON.stringify({ foo: "bar" }) and get a static guarantee of valid JSON?
872.
▲
by
adrusi
11y ago
In C and C++ you can conservatively eliminate unused code for statically linked libraries using --gc-sections and -fdata-sections. Go uses the Plan9 compiler architecture, which means that its linker knows more about the code and is respons
873.
▲
by
adrusi
11y ago
This is one of the biggest sources of bloat. In the node and ruby ecosystems especially, dependencies proliferate exponentially, where an application pulls in 12 libraries, each of which pull in 12 of their own, which each pull... Downloadi
874.
▲
by
adrusi
11y ago
As a big fan of suckless software I can agree. While I understand the reasoning behind it, that configuration files are awful and introduce needless dependencies and make it too easy to leave a design decision up to the user as a config opt
875.
▲
by
adrusi
11y ago
When you statically link and executable, all the code from the libraries that it links to (at least the code that is directly or indirectly called by the application) is bundled into the binary. If you have 13 applications running that each
876.
▲
by
adrusi
11y ago
And not even all integer keys! Lua will efficiently handle sparse arrays using tables.
877.
▲
by
adrusi
11y ago
It can be avoided by choosing a good allocation strategy for the linked list, allocating nodes in an arena can eliminate cache misses.
878.
▲
by
adrusi
11y ago
Part of it might be that it obfuscates the structure of the error message. Error messages, even without error cascading, and especially when taking a top-down approach to writing code, are long and meant to be skimmed. Human languages are g
879.
▲
by
adrusi
11y ago
Ah, but then you'd lose the explanations for why each scenario is not appropriate to work for free in.
880.
▲
by
adrusi
11y ago
Because even the social environments that don't resemble schools are created by, operated by, and comprised of people who learned how to interact socially in the school environment. This means that many of the subtle conventions that u
881.
▲
by
adrusi
11y ago
It has essentially won on linux, where Qt is limitted to the KDE subculture and cross platform apps for which linux is not a priority. GNOME, Unity, Pantheon, XFCE, LXDE, Mate, Cinnamon, etc. all work best with GTK. With some of the heavier
882.
▲
by
adrusi
11y ago
There's a history surrounding the notion of company housing. During the industrial revolution, many factories and mills operated dormatories. The problem is that when you lose your job you lose your housing as well.
883.
▲
by
adrusi
11y ago
Perl suffers from having too many magical operators that makes it hard to reason about a snippet of code. Certainly a matter of personal preference, but a sprinkling of operators isn't so bad once you're acquainted with the lang
884.
▲
by
adrusi
11y ago
What do you consider a for loop to be? The loop constructs called "for" that existed prior to C all just iterated through a numeric sequence with an optional step parameter. This was present in BASIC, ALGOL68 and Pascal. The C for
885.
▲
by
adrusi
11y ago
It runs on BEAM, the erlang vm, and has essentially the same usecases as erlang. Good for distributed systems, including web applications, bad for cpu bound tasks, for systems programming. Not great for scripting but usable if you want.
886.
▲
by
adrusi
11y ago
No. Systemd isn't ununixy because it has to be, it's ununixy because that's the way it was written. It's superior to System V style init IMO, but it got that way in spite of its poor monolithic design, not because of it.
887.
▲
by
adrusi
11y ago
There used to be a feature in the youtube app for android to enable background play. It was removed because now they want you to pay for it. That's not to like. No ads is nice, but useless for anyone who is willing/able to install
888.
▲
by
adrusi
11y ago
A point that doesn't often get brought up in this discussion is that $0 software was virtually nonexistent at the time of the founding of the free software movement. In the internet's infancy, when software was still delivered on
889.
▲
by
adrusi
11y ago
I really don't get why people don't just declare their work public domain. Well there's one very good objective reason not to: it's not clear if you legally can in all jurisdictions. It's not clear that you can ju
890.
▲
by
adrusi
11y ago
You have to make your site accessible to search engines, so as long as you're not doing something weird like using javascript for styling and layout, just treating users who have disabled javascript as search engines should work just f
891.
▲
by
adrusi
11y ago
People don't like meta-discussion. It's not punishing you for calling out someone they like, it's about burying discussion topics they don't want to see derail the conversation. I did not vote down.
892.
▲
by
adrusi
11y ago
Well by gaming the lottery, they are taking a little bit of money from a lot of (largely poor) ticket buyers and profiting big from it. It's the same kind of dynamic as counterfeiting. I'd argue that that's a problem mostly w
893.
▲
by
adrusi
11y ago
The arch beginners' guide on the wiki will walk you through the installation process even if you don't know what you're doing. Still not as easy as Ubuntu, but should be feasible.
894.
▲
by
adrusi
11y ago
Except that as a method of escapism, alcohol is much more effective than hemp. Alcohol numbs emotion, hemp simply slightly dissociates the user from it.
895.
▲
by
adrusi
11y ago
Minetest isn't compatible with minecraft though. This project lets players connect using the Mojang proprietary client (and currently that's the only client).
896.
▲
by
adrusi
11y ago
what do you expect to be returned when you return a value not wrapped in a promise? Nothing that's a type error, it should throw a runtime exception just like all type errors in javascript, and it will show up in the debugger for the
897.
▲
by
adrusi
11y ago
The real confusion here is dynamic typing. It's weird that the parameter to .then() can return any value, but if it's a promise there's special behavior. And for no good reason either p.then(r => r + 5); Is just a
898.
▲
by
adrusi
11y ago
Its more composable, and because its less general, it more clearly articulates intent and iis easier to scan for bugs. Or at least it would in an ecosystem where functional programming is embraced, but I don't know how practical it is
899.
▲
by
adrusi
11y ago
People don't know what they want package mangers to do and they had much less of a clue back when the fragmentation started. So we got rpm and deb. Arch decided these were too complicated when you wanted a rolling release so they have
900.
▲
by
adrusi
11y ago
I don't try think that's feasible. The vtable is stored in the binary's data block, so that's usually a pretty compact region of memory, maybe even referenceable by 16 bits. Except that's no longer true if the type&
More ›