Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Kenji
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
107 ms
·
511.
▲
by
Kenji
10y ago
No. I used vim for half a year and then went back to notepad++ and similar for plain editing. The bottleneck in programming is thinking anyway, and not typing. It does not make a difference. For serious coding, I recommend a serious IDE.
512.
▲
by
Kenji
10y ago
Whoa, when I click on this link, it automatically closes the tab it resides in! At first I thought this was an elaborate meta joke since not reading articles would save me thousands of hours, but I think it is a bug. I am using the latest g
513.
▲
by
Kenji
10y ago
It can also be related to stress or lack of sleep. Both of these things are absolute memory killers - to a point where people suffering from it literally worried about dementia.
514.
▲
by
Kenji
10y ago
Do you know what's a structural threat to free society? Regulating free enterprise like online communities where people voluntarily intermingle.
515.
▲
by
Kenji
10y ago
Why not? Always keep up the fight.
516.
▲
by
Kenji
10y ago
>The last graph actually shows that the problem still happens with CPython's allocator disabled. Excuse my ignorance, but couldn't it still be a problem of the python runtime? I.e. they use malloc wrong, etc?
517.
▲
by
Kenji
10y ago
Actually, to address realtime constraints... In my job, I work on systems with realtime constraints and even in less critical parts (latency of ~100 microseconds is still acceptable) we had to eliminate all malloc calls. Mostly because mall
518.
▲
by
Kenji
10y ago
You are wise. I had money on my PayPal accont once. It was payment for a software feature I wrote for someone. Soon after I received the payment, they wrote an E-mail that it was a fraudulent transaction and froze my account. Of course I di
519.
▲
by
Kenji
10y ago
Did he really find a bug in glibc malloc? He didn't write that. This sounds like a bug in the python runtime and possibly in the offending program itself.
520.
▲
by
Kenji
10y ago
GC does have unavoidable overhead, in particular, it makes the execution times of your binary extremely unstable and high-variance. Not to mention, it has no idea how your program uses memory, such that it is bound to use a generic approach
521.
▲
by
Kenji
10y ago
I concur. If the memory allocator causes problems and you use a language with managed memory/a garbage collector, you're doing something wrong.
522.
▲
by
Kenji
10y ago
>Sure if u write game engines, do it in C/C++. Embedded devices? Probably a good choice. Bingo. Those two things are exactly what I do professionally and as a hobby.
523.
▲
by
Kenji
10y ago
As a C/C++ developer, C# feels like unreachable high level heaven. But then again, I prefer my code to have no garbage collector, be portable without any problems and have very high performance. So, C++ it is. If I was writing a Window
524.
▲
by
Kenji
10y ago
Now do a SHA1 one ;)
525.
▲
by
Kenji
10y ago
A prime example of an overreaching state.
526.
▲
by
Kenji
10y ago
If you stop learning, you stop growing, financially and, much worse, intellectually. People who refuse to learn have to make peace with the fact that they remain in their exact place for the rest of their lives. However, I do ask myself, ho
527.
▲
by
Kenji
10y ago
>If you cannot find a good name, large chance is that you probably have some confusion as of how to structure your program. I'm not sure about that. If you don't know about patterns like factory or observer (event listener), an
528.
▲
by
Kenji
10y ago
Even if you only have 2 additions in a row, the following things cause problems: Rounding mode, distributivity (or rather, lack thereof), intermediate precision, compiler optimisation, denormals, real IEEE754 conformity of the platform... T
529.
▲
by
Kenji
10y ago
As someone who is trying to get deterministic simulations relying on floats - the idea to use floats for money boggles my mind. Having a simple addition give the exact same thing on different machines - bit for bit - is already causing head
530.
▲
by
Kenji
10y ago
Ethnic cleansing by itself violates the non-aggression principle, but nice try.
531.
▲
by
Kenji
10y ago
That's why I go by my own definition of defensive war, and not the government's ;) And it's one more reason not to comply with conscription and sabotaging this authoritarian practice.
532.
▲
by
Kenji
10y ago
>I felt that way when I was called in for evaluation as a teenager. I am no pacifist. I definitely subscribe to the non-aggression principle, but a defensive war is always justified. I'd die for certain things I believe in, too. I j
533.
▲
by
Kenji
10y ago
It is impossible. If I was conscripted, I would actively sabotage those who did this to me, just out of spite. I live in a country with conscription. Luckily, I was seen unfit for the army before it went that far.
534.
▲
by
Kenji
10y ago
>Now imagine you're a country with less than 10% of the population and need to produce a force of 200k soldiers in order to have a credible deterrent against an aggressive neighbor. How do you do that without conscription? Well... y
535.
▲
by
Kenji
10y ago
That is absolutely horrifying. Did they? Responsive design is much older than 2012... Why wasn't this rejected on the grounds of prior art?
536.
▲
by
Kenji
10y ago
I like JS, so that's not my problem per se.
537.
▲
by
Kenji
10y ago
Video games. They require soft realtime constraints which current browsers are far from satisfying. Think networking, frame rendering, physics loop (even with deltas), etc. All of that is highly time-dependent.
538.
▲
by
Kenji
10y ago
I'd love to write C++ in the browser, but only if they fix timers. The power of C++ and manual memory management is completely useless if some independent overburdened thread gets to decide when you are scheduled and for how long you r
539.
▲
by
Kenji
10y ago
Obviously, I know about deltas. That doesn't fix visual stuttering because frames miss.
540.
▲
by
Kenji
10y ago
>I’m Glenn Fiedler and I’ve been a game developer for the last 15 years. If he is in the scene for so long, he should know about the timing problems in browsers: The JavaScript VM can schedule your game any time it likes and it's pr
More ›