HNHacker News
TopNewBestAskShowJobs

HugoDaniel

2,376 karma · joined March 27, 2012

submissionscomments
HugoDaniel··on Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
The clang documentation on vectorisation has a few examples

https://llvm.org/docs/Vectorizers.html#slp-vectorizer

Cache precedence and cache line optimisations are black magic, either you know specifically the cpu that you are targeting, or rely on hopium techniques like cache oblivious algorithms that try to reap some benefits.

The baseline is to measure, always, before and after optimisation(s). These "Data oriented design" approaches are very hard to measure and change rapidly because they have a profound impact on a codebase, rarely ever change "just one thing" and they err to the less intuitive and less readable side.

HugoDaniel··on Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
but they do, from the simplest automatic structure padding to the more complicated flow analysis and packing/vectorization
HugoDaniel··on Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
One of the cool things in C is the space it leaves for the compiler to perform optimisations.

Beyond what is observable, C compilers have almost free reins to do whatever they want, so long as the observable things are kept the same (output/memory address values, etc...).

Data oriented design was a smart-kid anti-pattern thing back then, but I wonder if compilers have evolved enough so that it is useless nowadays? It is by all measures a useless optimization, since it can be placed hidden from the observable object properties. (i.e. who cares if it is an array of structs or a struct of arrays, so long as the vec3 is still a { x, y, z }?)

HugoDaniel··on Fluid Paint
This is great!

Is there any place where it is possible to read more about this painting techniques for code?

HugoDaniel··on Thailand bans meme coin and NFT: “no clear objective or substance or underlying”
Just their life
HugoDaniel··on Doom Running on an IKEA Lamp [video]
the pregnancy test doom was fake! :O
HugoDaniel··on Rust 1.x seems to not always be backward compatible in practice
Similar things happen in a lot of other languages, sometimes it is not even a matter of a changing/evolving spec. (like TypeScript, or any other language that improves type checking or compile/interpretation validations at each minor version - breaking old code because it no longer type-checks/validates).

Sometimes I feel that C is the only language that can benefit from compound gains over time, their spec is tight and sees sparse nuanced improvements in wide intervals of time.

HugoDaniel··on Cities with the Best Work-Life Balance 2021
it would be cool to sort it by vitamin-d deficiency/exposure levels.

having to periodically take shots can take a toll in your "life" happiness and balance overall (work and personal)

HugoDaniel··on USB-C is about to go from 100W to 240W, enough to power beefier laptops
yay global warming
HugoDaniel··on Extreme HTTP Performance Tuning
"Disabling these mitigations gives us a performance boost of around 28%. "

This can't be serious. Can someone flag this article? Highly inappropriate.

HugoDaniel··on Extreme HTTP Performance Tuning
"Many of these specific optimizations won't really benefit you unless you are already serving more than 50k req/s to begin with."
HugoDaniel··on Ethereum will use around 99.95% less energy post merge
Oh, I fear that this might be on the route to Ethereum-Classic-V2.

Vitalik and core team wake up sulked and there we go..

HugoDaniel··on Ask HN: What are some tools / libraries you built yourself?
A low-level graphics engine, where each WebGL function has a corresponding HTML tag (web component), like a-frame but low-level instead.

https://hugodaniel.com/projects/shader-canvas/

The idea was to bring a more declarative vibe to the low-level WebGL API.

Done for a personal project, but I ended up using Three.js because my time to develop it further was running out :(

HugoDaniel··on Apple Design Resources
Please file a bug report if the Adobe XD links are not working for you
HugoDaniel··on Show HN: Mmm.page – Drag and drop personal website creator
awesome work! I love the flow, the simple concept of toolbar+modals for the UI, the premade sensible options. Oh and those menus and icons are very cool, did you use any special frontend framework?

anyway, keep it up! this is great :)

HugoDaniel··on iOS 14.5 delivers Unlock iPhone with Apple Watch, new privacy controls, and more
it would be cool if Safari finally got WebGL 2 enabled by default
HugoDaniel··on Rust Language Cheat Sheet
Pretty cool! Is there something like this for other languages? I know that Khronos publishes this pdf for WebGL*

* https://www.khronos.org/files/webgl20-reference-guide.pdf

HugoDaniel··on Dan Kaminsky has died
:( RIP
HugoDaniel··on Starting a new digital identity
Nym

The pseudonym a person selects and uses to sign his or her postings to websites, blogs, etc. so as to create a unique online identity without revealing their actual name/identity.

"With his most recent idiotic post, Little_Brain really lived down to his nym."

Source: https://www.urbandictionary.com/define.php?term=Nym

HugoDaniel··on Product-focused and sales-focused companies
meh, a not-so-kind but equally apt critic can also be made for the case that the article is trying to promote, the so called "market-driven" companies.

most edge funds companies can be considered almost 100% market driven...

HugoDaniel··on What have we lost? [video]
which does not imply that we haven't lost the architecture and hardware innovation associated with it
HugoDaniel··on What have we lost? [video]
Fitting Lisp in a stack based machine (or vice-versa) is mostly a compromise, not exactly a "realisation" of a "clever" method, because Lisp makes extensive use of list appends/concats, environments and garbage collection, which are not an easy fit for heap/stack C abstractions.
HugoDaniel··on I can only think that modern front end development has failed
Do your sites include interactive graphics and storytelling like the New York Times does? By what measure of "quality" are you setting yourself as "better" than the New York Times team?
HugoDaniel··on OpenBSD Adds Support for Coordinated Mars Time (MTC)
Alien technology
HugoDaniel··on GeForce RTX 3060 Ethereum Mining Restrictions Have Been Broken
This could drive the bigger question of the feasibility of hardware imposed restrictions.
HugoDaniel··on Comets Are More Dangerous Than We Thought
This time it looks like it will be Global Warming that kill the dinosaurs.
HugoDaniel··on HN front page ranked using only votes from early users (2009)
this is peak HN shtick, straight from the heart of startups "oldest members are $BETTER because they invested early in the idea" or some other ideological BS like that...
HugoDaniel··on UK to depart from GDPR
Mistaking the EU, the political union as an evolved form of the Rome treaty, with Euro, the coin. All that with the tone of absolute certainty and authority.

Hacker News has reached new lows :(

HugoDaniel··on 1991's PC technology was unbelievable (2011)
prince bypass megahit
HugoDaniel··on Ultima VIII – How to destroy a gaming franchise in one easy step
I loved Ultima VIII because of the little details, like the sounds of the Avatar steps changing according to the surface that he was walking on.
← PreviousPage 2 of 19Next →