Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jblow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
301.
▲
by
jblow
10y ago
GC enthusiasts say this, but I have never seen it actually be true. The reason is that whoever wrote the GC for your language has to solve an extremely general problem for an extremely large body of users with very different use-cases. A me
302.
▲
by
jblow
10y ago
I am a programmer with a lot of experience who has written a lot of things from scratch (not in Haskell). I think most documentation sucks and I dislike trying to read it, because it's very hard to get a picture of what's going on
303.
▲
by
jblow
10y ago
This class of problems falls into a weird space for me. They are 'toy problems' but not I don't feel like I'd have fun doing them. I had a lot of fun playing Shenzhen I/O and TIS-100, so if you want to do some progr
304.
▲
by
jblow
10y ago
No, those are only seen as "ways to solve the problem" by the functional-style programmers who created the problem in the first place. Stack allocation is what your computer is built from the ground up to do. It is not some kind o
305.
▲
by
jblow
10y ago
I think at this point you are abusing terminology such that it's meaningless. I am not just talking about putting copies of things on the stack, but having few copies to begin with, etc.
306.
▲
by
jblow
10y ago
Sure, but it's also worth pointing out that the class of programs that behave this way is the class of programs that are inefficient to begin with. If you handle strings, and you are copying and freeing strings all the time, that'
307.
▲
by
jblow
10y ago
All the Hacker News kids are crazy about microservices right now. In three years, people will have realized it wasn't such a good idea, and moved on to the next "this will solve everything" fad. Once you have seen enough of t
308.
▲
by
jblow
10y ago
Yeah. I find it a haughty article because he's not acknowledging the elephant in the room, which is that GC is not a solved problem despite all the whiz-bang techniques ... and that the Go people aren't being dishonest or ignorant
309.
▲
by
jblow
10y ago
Your figures are way wrong. I have an original Tesla Roadster, bought in 2010, with a battery that is basically the first thing they figured out how to do in order to put a car together. (The Model S battery is much more advanced). I drove
310.
▲
by
jblow
10y ago
Spoken like someone who does not ship fast software!
311.
▲
by
jblow
10y ago
Which is why high-end games do not use generic system malloc; in general we link custom allocators whose source code we control and that are going to behave similarly on all target platforms. (In fact we go out of our way to not do malloc-l
312.
▲
by
jblow
10y ago
I don't understand your reply. How is this not a non sequitur?
313.
▲
by
jblow
10y ago
Exactly. I would avoid using calloc simply because I don't know what it actually does .
314.
▲
by
jblow
10y ago
If you don't know whether or not you are really getting an optimization, then how much do you really care? If you really care, then you actually profile your system and see what takes how much time, under which circumstances. The resul
315.
▲
by
jblow
10y ago
Yes, and that is exactly my point. The article says you should use calloc because it provides these optimizations. I am saying no, that's goofy, because it is not specced to provide these optimizations.
316.
▲
by
jblow
10y ago
Sorry, but this is just goofy and bad. If you depend on copy-on-write functionality, then you need to use an API that is specced to guarantee copy-on-write functionality. If that means you use an #ifdef per platform and do OS-specific stuff
317.
▲
by
jblow
10y ago
Zaretskii's stance is weird. If you are going to run out of people who can work on the core of the editor's source code, then the editor will die. So the lack of ability to work on the code is the real problem. This is probably be
318.
▲
by
jblow
10y ago
If it were through willingness of the governed, then individual members of the governed who did not agree would be able to opt out ... ??
319.
▲
by
jblow
10y ago
I think int is 8 bytes on the PS4. (I just got bitten by this...)
320.
▲
by
jblow
10y ago
The way socialism puts people before money is via government control of resource allocation. That is by necessity authoritarian (even in the USA).
321.
▲
by
jblow
10y ago
He's not assuming anything. He's saying garbage in, garbage out. How can there be a reasonable discussion if we don't even know what the thing is we are trying to discuss?
322.
▲
by
jblow
10y ago
You are saying this free will stuff because you are conditioned to believe in free will. Someone who knew that there was only one future would find the idea of free will to be like some kind of fairy tale -- the lack of it doesn't requ
323.
▲
by
jblow
10y ago
I said shipping code, by which I specifically mean that which is left after all deletions (of which there are many).
324.
▲
by
jblow
10y ago
> the architecting and consideration of interplay between components takes the bulk of the time. Which is supposed to be what is simplified as LOC goes down. So if a supposed 5x-10x code reduction (which I've never seen real evidenc
325.
▲
by
jblow
10y ago
> would often take 10+ LoC in other languages can be succinctly expressed as 1-2 lines. Every time I have heard this kind of claim (with modern languages), it turned out not to be true except for trivial code or straw-man bad code in the
326.
▲
by
jblow
10y ago
10,000 lines is supposed to be 'big'? wtf? I write something like 25kLoC/year (of shipping code, generally very complex stuff) and I don't even program full-time. The two projects I am working on now are 35kloc (the smal
327.
▲
by
jblow
10y ago
All the studies mentioned in this article are exactly the type that are currently being debunked en masse and generally causing a crisis of faith in psychology.
328.
▲
by
jblow
10y ago
I think such people just aren't paying attention. Everyone who understands American economic policy knows that the currency is being slowly devalued on purpose . This is not a conspiracy theory, it is common knowledge. The inflation t
329.
▲
by
jblow
10y ago
It takes CPU to decompress audio, and games can easily be playing 100+ SFX at once.
330.
▲
by
jblow
10y ago
>> Good programmers understand how malloc works. > "Good programmers know how their GC works. What, are you kidding, or am I misunderstanding?" I think you are not understanding what I am saying. You link your allocators
More ›