Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cnity
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
241.
▲
by
cnity
3y ago
Couldn't this obfuscate OOM type problems by not triggering actual memory issues until much later than the allocation?
242.
▲
by
cnity
3y ago
The sink overflow goes to the same drain, so it doesn't really work in this analogy! (Or it works very well, depending on your perspective).
243.
▲
by
cnity
3y ago
Etymology as a whole is a hoot for this.
244.
▲
by
cnity
3y ago
By this definition, people who embrace high levels of alcohol consumption despite their obvious effects don't have a drinking problem, which seems a bit tentative to me. I would say someone like George Best very much had a drinking pro
245.
▲
by
cnity
3y ago
Fair points. I do find the scope of C macros to be far narrower than overloading, but you are right.
246.
▲
by
cnity
3y ago
Interestingly I dislike Python for the exact same reason. Every time I look at a PR, I second guess every single operator and index. Does this attribute access carry a heavy penalty or side effects? Etc. I find it adds a large mental overhe
247.
▲
by
cnity
3y ago
The same viewpoint applies to any motor vehicle too. How many road accidents are due to mechanical error introduced by a mechanic (that does not operate on behalf of the car manufacturer)? What makes an "official" mechanic employe
248.
▲
by
cnity
3y ago
I love encountering nay-sayers because it means either: 1. I am wrong and could learn something new. 2. They are wrong and their opposition fills me with defiant determination. The difficulty comes when you view something as case 2 but it i
249.
▲
by
cnity
3y ago
I will concede that you are probably a very different kind of Emacs user than I, since I pretty much exclusively used Elisp to set up and tune my editor to my liking as a totally independent act from actually using my editor to write progra
250.
▲
by
cnity
3y ago
I'm a big lisp fan. I know about all of this, I used emacs for maybe a decade, and I still don't like elisp. I love the hackability of Emacs, but it's OK to dislike the language itself. Disliking semantic choices of the langu
251.
▲
by
cnity
3y ago
Isn't it more like: "exploitation of a market inefficiency renders the market efficient over time", or something to that effect? Or rather, (others) making money from trading is what makes it hard (for you) to make money from
252.
▲
by
cnity
3y ago
If you're not using neovim you're really missing out right now IMO. It's a renaissance for a hackable text editor because it uses a sensible modern programming language (Lua) rather than vimscript (yikes) or elisp (eh).
253.
▲
by
cnity
3y ago
Similarly with fugitive in vim, which is fantastic. Diffing, resolving conflicts, and moving through file revisions (and a lot more).
254.
▲
by
cnity
3y ago
My understanding of the flaws of PM is in its attempts to avoid self-reference, which was sort of folly from the beginning as proven by Godel. I learned this from I Am A Strange Loop, and I'm not sure how accurate it is historically. B
255.
▲
by
cnity
3y ago
It's an interesting and weirdly loaded angle to suggest that the only red meat foods are unhealthy (by picking unhealthy foods as examples). Consider this alternative phrasing: > this study shouldn’t be taken as an excuse to eat mor
256.
▲
by
cnity
3y ago
I don't think "that" means "cats are just like Bluetooth speakers". The same way that "who" doesn't imply all humans are the same.
257.
▲
by
cnity
3y ago
Neither. I'm stating that, grammatically speaking, "who" refers to humans, and that the title of the post has correct grammar. Besides, cats objectively have fewer rights because I can own one, for example.
258.
▲
by
cnity
3y ago
This isn't pedantic, it's just wrong. "Who" is for humans.
259.
▲
by
cnity
3y ago
Yeah. Most of my code these days works like this, to the point where almost all of my allocation happens roughly in my main entry-point. Or I use arena allocators and pass those into my utilities. But there's basically never a `realloc
260.
▲
by
cnity
3y ago
Read The Three Body Problem if you found this interesting/fun. I won't elucidate because it will spoil it.
261.
▲
by
cnity
3y ago
> just like macOS has Can you please direct me to where this is possible in MacOS? I can't see any option to configure a charging cap except some "smart" option which has been on this whole time but always charges to 100%.
262.
▲
by
cnity
3y ago
Here's my proposal: Introduce a new threadsafe API (`tgetenv` or whatever) which takes _two_ `char *`s, one of which is a return buffer. This leaves allocation as a responsibility of the caller. And then you can leave the existing sysc
263.
▲
by
cnity
3y ago
Have you never listened to one half of a phone call before? You can glean a great deal of information about the person on the other end.
264.
▲
by
cnity
3y ago
"Everything in you that you don't need, you can let go of. You don't need loneliness, for you couldn't possibly be alone. You don't need greed, because you already have it all. You don't need doubt, because you
265.
▲
by
cnity
3y ago
> Neither is conducive to efficiently removing elements mid-set, or composing two sets, or interleaving two sets, or other operations that require reordering, replacing, adding or removing elements in the set Read this: https:/
266.
▲
by
cnity
3y ago
I like to think of a simple thought experiment when these types of arguments come up: Suppose you want some video game to exist. The most amazing, expansive, ground-breaking video game ever made. There are only two scenarios: 1. AI can repl
267.
▲
by
cnity
3y ago
Modern electronics and computing do indeed owe much of their development to warfare.
268.
▲
by
cnity
3y ago
I think there is some interesting truth to this line of thinking, though it is misguided. To some degree, a diesel ship is not an all-out improvement over a sailboat. It outsources much of its cost to the environment. In this manner it is
269.
▲
by
cnity
3y ago
It's not about taking these "virtual ethics" at face value. It's about watching a touching moment between characters and recognising that elements of that situation can be related to. If you are unable to consume fiction
270.
▲
by
cnity
3y ago
You're missing the point. The setting of TNG is radically different from ours for the reason you described, and yet their problems of trust are the same. Using science fiction to deliver messages pertinent to today is typical and, argu
More ›