HNHacker News
TopNewBestAskShowJobs

DiThi

1,312 karma · joined June 23, 2014

submissionscomments
DiThi··on Deep-copying in JavaScript
Except that you need to copy _something_ at some point to modify values (or more precisely, having another object that is the same but with X change). In theory everything is re-created with a change, but in practice only the changed objects are copied.
DiThi··on Firefox 58
The "break on exception" button is missing in that one.
DiThi··on Firefox 58
When FF 57 came out I was surprised at the new debugger, much better than the old one. But turns out it's still useless. I can't put a breakpoint in the middle of a WebGL game and expect it to work like in Chrome.

The last dev version is even more useless, the "break on exception" button is missing.

DiThi··on Relativ – A VR headset that you can build yourself for $100
Or much simpler: make it OpenVR or OSVR compatible. With any of the two it will work with the vast majority of games available.
DiThi··on Relativ – A VR headset that you can build yourself for $100
Yes it uses both, relative and absolute measurements (each with its own drawbacks) into what's usually called sensor fusion. It's very well explained here: http://doc-ok.org/?p=1478

The headset is not wireless and the controllers have 1-2 ms of latency. They compress the controller data a lot in a very smart way. More info: https://hackaday.com/2016/12/12/cnlohr-reverses-vive-valve-e...

DiThi··on Relativ – A VR headset that you can build yourself for $100
Do you have a source on the stereo cameras of the Vive Pro being used for inside out tracking?
DiThi··on Relativ – A VR headset that you can build yourself for $100
> That's why all smartphone-based VR solutions suck and make you sick.

Well, GearVR and Daydream suck but at least don't make you sick if you stay sit and avoid apps with artificial movement.

DiThi··on WebAssembly and Rust: performance analysis
Until the GPU driver _says_ it has finished rendering.

Been developing WebGL for years. I've never seen any difference in performance with gl.finish() and without vsync. I would expect some difference because the JS code wouldn't be running in parallel with gl.finish().

The only way I have been able to measure performance is to look at the FPS without vsync (chrome --disable-gpu-vsync).

DiThi··on WebGPU demos
If it maps closely enough to Vulkan, it's good (and it seems it will be the case according to the other comment). It's not the only competing successor of WebGL.
DiThi··on Firefox’s new streaming and tiering compiler
You tell Edge, "compile this", Edge replies "done!" when what it has done is just verifying it's valid WASM. When you then call a function, it's compiled.
DiThi··on How Automakers Invented the Crime of “Jaywalking”
Good point... Well, that seems easy to police: Have one car patrolling for beacons not attached to what appears to be a person or bike. The only consequence of such troll beacons are cars slowing down on that point, that's all.
DiThi··on How Automakers Invented the Crime of “Jaywalking”
Everybody misinterpreted what I've intended. SHORT RANGE BEACONS. Enough to be "seen" by car AI through obstacles. Here's the imaginary conversation between car and beacon:

- "Is someone behind that parked van?"

- "Yes"

- "Who?"

- "Mind your own business, just slow down in case I decide to jump to the road, ok?"

DiThi··on How Automakers Invented the Crime of “Jaywalking”
> Cyclists may be restricted and anything else that confuses AI drivers.

I don't think that will ever happen. It may even be the opposite: AI will drive in a way it will always be able to stop if there's a possibility that there's someone behind some obstacle that may jump to the road at any moment.

Worst case scenario, beacons become mandatory. Cheap and anonymous beacons you have to carry when you're near a road. Smart phones may include such functionality.

DiThi··on IBM mainframe tube module part II: Powering up and using a 1950s key debouncer
That's really interesting. Although it may not be the so much the out-of-sync bouncing but the flexibility of those fingers absorbing the shock. It would be interesting to see one of those in action with a high speed camera.
DiThi··on Cloud companies consider Intel rivals after security flaws found
That totally sounds like a bug to me, it shouldn't happen.
DiThi··on Cloud companies consider Intel rivals after security flaws found
> Some people bypass it via WebGL.

How? There's no concept of a tainted WebGL canvas because it just can't load textures without CORS.

DiThi··on N64 object software renderer in 512 lines
I think it was modified after being posted.
DiThi··on Ask HN: As an adult introvertish nerd what makes you happy?
I'm not sure that's true. There are alternative possibilities: That one learns to predict (some kinds of) people. That one's obsessed with a series of topics that gets oneself bored when not being able to discuss, etc. There's many, many small reasons an introvert's energy is depleted, that is not just "being with people".

As an anecdotal data point, I was very introvert and I did learn to "be extrovert" and many people wouldn't notice at all, but at the end of the day I need to be alone, sometimes for days to recover and be productive again.

Even though it's anecdotal I think we can't generalize and say "introversion doesn't exist". There's a lot of factors involved. Stuff may be even more complex when dealing with an ASD.

DiThi··on Ask HN: As an adult introvertish nerd what makes you happy?
Yes but I found the definition I gave much more helpful to explain to people as an starting point, in one sentence or two. It helps dispel the relationship with happiness, (in)ability to change and other false dichotomies.
DiThi··on Ask HN: As an adult introvertish nerd what makes you happy?
Part of the issue is that many people don't really understand what introvert/extrovert really means. It's not about being happy alone or in groups, at all. It's about the "energy" you have, the opposite side is being tired as if you were riding roller coasters for hours. Extroverts "recharge" while socializing while introverts lose energy with (most kinds of) company, no matter how much they're enjoying it.

Knowing this, I think it's pretty obvious introverts can learn and appear as extroverts, but eventually they hit a point where they have to say "bye" and be alone doing nothing productive for a while.

DiThi··on Dropbox Files Confidentially for U.S. IPO
WTF is wrong with the scroll bar? It's useless. A hijacked scroll wheel with slow speed doesn't help either.
DiThi··on Why is 11 am and 1 hour == 12:00 pm?
It's not confusing for us Europeans since we use 24 hour clocks. Midnight is 00. However I did not understand the reason the 24 hour clock caught on until now. TV schedules use 24 hour clocks to avoid this ambiguity.
DiThi··on HTC’s Vive Pro will add more pixels to an otherwise familiar-looking VR system
FO4VR is a pretty bad example of how good a VR game can look today. It's very badly optimized and with bad defaults.

Lone Echo is much better, and with controls perfectly tailored for VR. It's an Oculus exclusive but I played with ReVive.

DiThi··on Exercise Alters Our Microbiome
Butter is in "less" and salt and bacon in "as little as possible". With what we know now it should be the opposite.

About fat: https://www.youtube.com/watch?v=5S6-v37nOtY About salt: https://www.youtube.com/watch?v=-ygExIZm7Wo

DiThi··on Exercise Alters Our Microbiome
The keto community doesn't exercise that much. I know there are not many studies on ketogenic diets, but there are and the vast majority are positive.
DiThi··on Exercise Alters Our Microbiome
Who says it? I had more energy on keto, except for one day (around a week after starting) that felt terrible and was fixed by drinking water with salt and potassium. Keto diets don't recommend against a high saturated fat content, only some do because of the common misconception that it is bad. There are no studies showing bad effects of saturated fat by itself. It's the carbs what causes the problem, fat only makes it worse.
DiThi··on Exercise Alters Our Microbiome
You may want to remove the "t=88s". That's an excellent video I recommended many times, by the way. It has a text version with many sources linked in the description, and the rest of the channel is very good too.
DiThi··on Exercise Alters Our Microbiome
Saturated fat alone is not bad at all, it's actually very healthy. However combining it with carbs it's a bomb. If you don't believe me, try to find any study with negative effects of saturated fat where the diet doesn't also include >30% of calories as carbs.
DiThi··on From 200K lines of CoffeeScript to zero: making decaffeinate super-stable
It works with node --inspect as well.
DiThi··on From 200K lines of CoffeeScript to zero: making decaffeinate super-stable
The first problem is easily avoided with a few style guidelines. If a feature exists it doesn't mean it must be used. You can configure CoffeeLint to avoid confusing constructs.

The second problem didn't turn out to be as big as I thought. I was bitten by it about a couple times a year, and every time it was symptom of too long functions or too many closure nesting.

Transpiling and source maps are not a problem. Small changes in my code takes 200 ms to recompile with source maps, with webpack in watch mode (projects are ~20k lines). And when I start a new project I just copy the webpack config from the previous one (with cli switches for several features).

← PreviousPage 2 of 23Next →