Better HN
topnewbestaskshowjobs
Log inSign up

HugoDaniel

2,376 karma · joined Mar 27, 2012 (14y ago) · 710 submissions

Submissions

comment 5y ago · link · parent

they can (pun intended)

comment 5y ago · link · parent

why use lines when you can use trigonometry? aren't we all made of waves anyway?

comment 5y ago · link · parent

Lets ask Casio, since 1989 that they sell the F-91W [0].

When will they also start ratting on their costumers?

[0] https://en.wikipedia.org/wiki/Casio_F-91W#Usage_in_terrorism

comment 5y ago · link · parent

When will Nike and Tesla also offer protections against costumers that use their products to commit infractions such as CP?

comment 5y ago · link · parent

Does not work in Safari, instead a message is presented saying:

"Safari is teh new Internet Explorer"

36.

Michelson – Language for formally verified smart contracts(michelson.org ↗)

1 points · by HugoDaniel · 5y ago · discuss

37.

Tezos – A blockchain designed to be upgraded(tezos.com ↗)

1 points · by HugoDaniel · 5y ago · discuss

comment 5y ago · link · parent

Would an "upgradeable" crypto-coin solve that flaw?

comment 5y ago · link · parent

Sure there are great benefits in sequential access, some of these can even be calculated to some extent.

However your reply does not answer the question.

Do you know of any CPU that has specific instructions to handle cache? How can you be sure that you are gaming cache lines when even the mnemonics are mostly virtualised through all the pipeline and jump/memory pattern predictions?

comment 5y ago · link · parent

How can you? Do you know of a CPU that has specific instructions to handle cache allocations?

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

but they do, from the simplest automatic structure padding to the more complicated flow analysis and packing/vectorization

comment 5y ago · link · parent

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 }?)

comment 5y ago · link · parent

This is great!

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

comment 5y ago · link · parent

Just their life

comment 5y ago · link · parent

the pregnancy test doom was fake! :O

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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)

comment 5y ago · link · parent

yay global warming

50.

Teach Yourself Demoscene in 14 Days(github.com ↗)

427 points · by _gjrn · 5y ago · 45 comments

comment 5y ago · link · parent

"Disabling these mitigations gives us a performance boost of around 28%. "

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

comment 5y ago · link · parent

"Many of these specific optimizations won't really benefit you unless you are already serving more than 50k req/s to begin with."

comment 5y ago · link · parent

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..

comment 5y ago · link · parent

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 :(

comment 5y ago · link · parent

Please file a bug report if the Adobe XD links are not working for you

comment 5y ago · link · parent

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 :)

57.

Sketch: In 2021 and Beyond(sketch.com ↗)

2 points · by HugoDaniel · 5y ago · discuss

comment 5y ago · link · parent

it would be cool if Safari finally got WebGL 2 enabled by default

comment 5y ago · link · parent

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

12345
24