News for hackers. Stuff that matters.

superMayo

Re:Mario Meets Pareto on Thursday August 06, 2026 @12:46PM (#49199138)
I'm sorry, this is by design colorful and interactive. If you still want to read about this topic in a less "juicy" way, you can can take a look at this other article: https://hinnefe2.github.io/python/tools/2015/09/21/mario-kar...
Re:Mario Meets Pareto on Thursday August 06, 2026 @10:02AM (#49196864)
Can you tell me what’s going on? I tried my best to make it work on every device, but handling mobile is hard, and especially when you’re messing with interactivity and 3D.
Re:Mario Meets Pareto on Thursday August 06, 2026 @09:59AM (#49196831)
Author here. The source code is available at https://github.com/SuperMayo/mayerowitz.io.

It’s called scrollytelling. For this particular project, I borrowed a lot from https://mlu-explain.github.io/. For the 3D elements, I used Threejs and a custom vertex shader for the 3D plot.

Yes, I could have been using THREE.OrthographicCamera(), however, it makes the effect way less cinematic, and most importantly, it makes the depth harder to see (particularly for a scatter plot).
So sorry I've disappointed you, but don't fuck your life plz
I hope your character is not Koopa
Thank's for the info, will fix asap !
Thanks a lot! That was my goal. It's a trick I learned: if you zoom in from a distance, everything appears flat. The effect is achieved by zooming out while simultaneously moving the camera closer to the subject!
Author here. I'm using Svelte, which is great for interactive applications. For the event handling I'm very influenced by what https://mlu-explain.github.io/ does. The 3d plot is made with Threejs through the Threlte wrapper. One challenge was animating the 20k points in the 3d plot, which is handled by a custom vertex shader.
Re:Interactive Intro to Shaders on Friday October 27, 2023 @07:38AM (#38037212)
That's strange, what browser are you using?
Re:Interactive Intro to Shaders on Friday October 27, 2023 @07:17AM (#38037080)
Didn't know that, thanks for the tip!
Re:Interactive Intro to Shaders on Friday October 27, 2023 @04:51AM (#38036118)
That's really nice to hear and it gives motivation to continue! Next article will probably go 3D, but it adds a lot of difficulties. I still need to find out a good small-scale but playful shader project to cover!
Re:Interactive Intro to Shaders on Friday October 27, 2023 @04:43AM (#38036073)
Inigo Quilez is a wizard, the shader community owes so much to him!
Re:Interactive Intro to Shaders on Friday October 27, 2023 @04:38AM (#38036055)
Indeed it's a simplification! You can use buffers to keep information from previous states or share state between pixels (for both fragment and compute shaders). Though it can greatly reduce the performance sometimes. For an intro however, I think it's simpler to assume no memory nor shared state.
Re:Interactive Intro to Shaders on Friday October 27, 2023 @04:24AM (#38036004)
Fixed-it, thanks ;)
Re:Interactive Intro to Shaders on Thursday October 26, 2023 @06:03PM (#38032289)
I finally found the courage to write and expose myself to the internet. I've always wanted to learn shaders so I thought it would be nice to document my learning and share it with others.
Re:Causality for Machine Learning on Wednesday September 27, 2023 @03:47AM (#37671446)
Causality has been the objective of econometrics for many years. I always wonder why people in machine learning overlook it's contributions. They almost never discuss it (even to criticize it) and prefer reinventing the wheel.
> Economists definitely claim to know how things work.

Some do, most don't. Most economists are just trying to publish their work in peer reviewed journals. The one that have time to talk on mass media every weeks are not regular economist. Krugman had some great papers, but he is definitely not considered as a researcher anymore by the profession.

> Allowing completely free trade will be great he said. Prices will be lowered and the economy will run more efficiently. Maybe that’s true, but it also hollowed out the U.S. manufacturing base and consequently the middle class. You don’t see articles like that anymore.

The HOS model, commonly accepted in the trade literature that Krugman knows well, is very clear about the effect of free trade (even if the model could be regared as too simplistic): it lowers the prices and increases total production, however, it creates unequal gains (or even loss) within countries. The standard policy recommandation among trade economists is public polices should be aimed to losers using a fraction of gains from trade.

There may be a huge selection bias in their study: insiders are more likely to publish their game, weather they are bad or good. In comparison, hobbyist have to propose better games in order to have the chance to be visible and then published. This would bias the study into thinking that hobbyist are more innovative than professionals.
But are ants Turing complete ?
Re:Why I use R on Monday January 06, 2020 @07:15AM (#21968545)
As an applied economist, I can assure you that R is wayyy better in terms of statistics than Python. Doing causal models in Python is a real pain because its data science community is mostly focused on machine learning. Even a robust linear model with IV or fixed effect (which is standard in causal models) is really hard to achieve in Python. Of course this argument is about the libraries and note the core language, but it's a strong argument to stay with R. This argument is also valid outside academics, as more and more data scientists try to adress causality.