Readit News logoReadit News

Deleted Comment

marhee commented on MacPaint Art from the Mid-80s Still Looks Great Today   blog.decryption.net.au/po... · Posted by u/decryption
marhee · 2 months ago
If you enjoy this art-style, definitely check out the game Return to the Obra Dinn.
marhee commented on AI coding tools can reduce productivity   secondthoughts.ai/p/ai-co... · Posted by u/gk1
Fraterkes · 2 months ago
I think the dichotomy you see with how positive people are about ai has almost entirely to do with the kind of questions they ask.

That seems obvious, but a consequence of that is that people who are sceptical of ai (like me) only use it when they've exhausted other resources (like google). You ask very specific questions where not a lot of documentation is available and inevetably even o3 ends up being pretty useless.

Conversely there's people who love ai and use it for everything, and since the majority of the stuff they ask about is fairly simple and well documented (eg "Write me some typescript"), they rarely have a negative experience.

marhee · 2 months ago
Well, I use it before google, since it in general summarizes webpages and removes the ads. Quite handy. It’s also very useful to check if you understand something correctly. And for programming specifically I found it really useful to help naming stuff (which tends to be hard not in the least place because it’s subjective).
marhee commented on Figma files for proposed IPO   figma.com/blog/s1-public/... · Posted by u/kualto
poiru · 2 months ago
+1 from another Figma engineer who happened to work on the text engine back in the day.

I think that Evan generally wrote code that was as simple as possible — there was no unnecessary complexity. In this case there indeed is some inherent, unavoidable complexity due to the math involved and the performance requirements, but otherwise I found our text rendering pipeline very understandable.

Evan actually wrote about it if you're curious to learn more: https://medium.com/@evanwallace/easy-scalable-text-rendering...

marhee · 2 months ago
It’s a clever trick. But can it render a textured text? Transparent text, gradient fills? Maybe it can, I dont know. But why not just triangulate the glyph shapes, and represent each glyph as a set of triangles. This triangulation can be done offline, making rendering very lightweight.
marhee commented on Compact Representations for Arrays in Lua [pdf]   sol.sbc.org.br/index.php/... · Posted by u/tkhattra
marhee · 2 months ago
I wonder, in reality, if a Lua program uses large (consecutive) arrays, its values will likely have the same type? At the very least it is a common use-case: large arrays of only strings, numbers etc. Wouldn’t it make sense to (also) optimize just for this case with a flag and a single type tag. Simple and it optimizes memory use for 98% of use cases?
marhee commented on Helion: A modern fast paced Doom FPS engine in C#   github.com/Helion-Engine/... · Posted by u/klaussilveira
bob1029 · 3 months ago
I am curious if the author considered use of the built-in numerics library over hand-rolling types like Vector4F.

All of the methods defined here:

https://github.com/Helion-Engine/Helion/blob/20300d89ee4091c...

Are available in the kitchen sink:

https://learn.microsoft.com/en-us/dotnet/api/system.numerics...

Same idea applies to methods like GetProjection, which could be replaced with methods like:

https://learn.microsoft.com/en-us/dotnet/api/system.numerics...

Advantages of using this library are that it is uses intrinsics (SIMD) to accelerate operations. There is a lot of Microsoft money & time that has been invested into these code piles.

marhee · 3 months ago
I suspect it's part of the fun? A way to really learn something?

There's also another hint:

// THIS FILE WAS AUTO-GENERATED. // CHANGES WILL NOT BE PROPAGATED. // ----------------------------------------------------------------------------

(Of course this could be a result of something having nothing to do with the contents of the file, but maybe the author has to meta library that can generate the types in different languages).

There seems to be fixed-precision variants of the vector types as well which seems to be not available in the .NET framework.

Plus, of course, you can't add your specifics needs to library types (like the fixed precision). They are closed to modification.

I am just guessing, of course.

That being said, it would also make total sense to use the .NET types.

marhee commented on OpenAI to buy AI startup from Jony Ive   bloomberg.com/news/articl... · Posted by u/minimaxir
marhee · 4 months ago
Would be quite funny if Apple now acquires OpenAI.
marhee commented on Pipelining might be my favorite programming language feature   herecomesthemoon.net/2025... · Posted by u/Mond_
invalidator · 5 months ago
The author keeps calling it "pipelining", but I think the right term is "method chaining".

Compare with a simple pipeline in bash:

  grep needle < haystack.txt | sed 's/foo/bar/g' | xargs wc -l
Each of those components executes in parallel, with the intermediate results streaming between them. You get a similar effect with coroutines.

Compare Ruby:

  data = File.readlines("haystack.txt")
    .map(&:strip)
    .grep(/needle/)
    .map { |i| i.gsub('foo', 'bar') }
    .map { |i| File.readlines(i).count }
In that case, each line is processed sequentially, with a complete array being created between each step. Nothing actually gets pipelined.

Despite being clean and readable, I don't tend to do it any more, because it's harder to debug. More often these days, I write things like this:

  data = File.readlines("haystack.txt")
  data = data.map(&:strip)
  data = data.grep(/needle/)
  data = data.map { |i| i.gsub('foo', 'bar') }
  data = data.map { |i| File.readlines(i).count }
It's ugly, but you know what? I can set a breakpoint anywhere and inspect the intermediate states without having to edit the script in prod. Sometimes ugly and boring is better.

marhee · 5 months ago
I don’t find your “seasoned developer” version ugly at all. It just looks more mature and relaxed. It also has the benefits that you can actually do error handling and have space to add comments. Maybe people don’t like it because of the repetition of “data =“ but in fact you could use descriptive new variable names making the code even more readable (auto documenting). I’ve always felt method chaining to look “cramped”, if that’s the right word. Like a person drawing on paper but only using the upper left corner. However, this surely is also a matter of preference or what your used to.
marhee commented on Utah becomes first US state to ban fluoride in its water   bbc.com/news/articles/c4g... · Posted by u/Jimmc414
hayst4ck · 5 months ago
Putting fluoride in water promotes freedom. That sounds crazy, but let me justify it.

If you are poor you can't go anywhere or buy anything. You're not free if you're poor. If you are sick, you may be confined to a hospital bed or not feel good enough to do anything. If you are sick you're not free.

Putting fluoride in water reduces dental costs and incidence of cavities and therefore tooth infections, particularly among societies poorest. Therefore, due to fluoridation in water some people are less sick and have more money and therefore are more free.

The contrasting view is that putting fluoride in water is literally medicating people without their affirmative consent. It is the government forcing you to take a medication. It is coercive and therefore an attack on your freedom to not take medication. It is the government interfering in your life.

The contrast between positive freedom, the freedom to do something, and negative freedom, the freedom from interference in your life, is the core political argument in America right now. Negative freedom, freedom from government interference, is being promoted by those seeking to weaken the government enough to supplant it. People who are poor and sick are likely unable to stand up for themselves or participate in solidarity against authority. This individual issue is relatively small, but you take 100's of issues like this, and the effect is to create a class of people who aren't able to do anything but be obedient workers.

marhee · 5 months ago
According to that logic, why not distribute fluoride water freely for those who want it? That would serve boths camps, not?

u/marhee

KarmaCake day129August 24, 2021View Original