HackerTrans
TopNewTrendsCommentsPastAskShowJobs

scythmic_waves

no profile record

comments

scythmic_waves
·last month·discuss
Anecdotally, it is very much different in Elixir land. I occasionally see bugs related to something being unexpectedly `nil` but it's pretty rare IME.

I'd love to evidence what I'm saying with specific numbers since this kind of discussion would benefit from being as objective as possible. Sadly I don't have them. But I still believe what I'm saying and I have a few guesses about some of the causes:

1. Immutable data - so, so many bugs are caused by data mutating out from under you in subtle ways. If you write `x = 1` in your Elixir function, nothing can change the value of `x` except an explicit rebinding. You can then write e.g. `y = f(x)` and know `x` remains unchanged after. Note: this is also true even if the variable is a composite type. `my_struct = blah()` will remain the same in it's entirety no matter what you do with `my_struct`. This is different than in JS where e.g. you can change the contents of an object even if it's declared `const`.

2. Assertive style - the Elixir community favors writing things in an "assertive" fashion [1]. Briefly, this a way of writing code that will fail the moment an assumption is broken rather than letting the issue propagate.

3. Pattern matching (somewhat like destructuring in JS) - Elixir code actually ends up feeling "typed" with pattern matching. E.g. `%Time{} = today = Date.utc_today()` will attempt to bind `today` to the result of `Date.utc_today()` and will raise a `MatchError` when the result, a `%Date{}` struct, fails to be a `%Time{}` struct. Or `[a, b] = [1, 2, 3]` will raise a `MatchError` because `[1, 2, 3]` isn't a list of length exactly 2. You can use pattern matching to write very assertive code quite tersely.

These reasons are all local properties of code. But when all its parts are written in this way, a program as a whole gains a level of correctness that's hard to achieve in a dynamically typed language without them.

Also these reasons aren't exhaustive, but they're top of mind when thinking about this topic.

[1]: https://dashbit.co/blog/writing-assertive-code-with-elixir
scythmic_waves
·2 months ago·discuss
I read this years ago and I think it's the best one I've read. Thanks for writing it!
scythmic_waves
·2 months ago·discuss
I think it's because, without further context, it's so hard to argue against. Pretty much every person in every culture cares deeply about their children. So if you can successfully hitch your position to that idea, it too becomes hard to argue against.

It's the same with tough on crime. "What, you want criminals to keep getting away with it?!"
scythmic_waves
·3 months ago·discuss
It's fun! I play some chess but I am not a natural at this game. I think I need an AI easier than easy haha
scythmic_waves
·3 months ago·discuss
From the conclusion:

> The primary trade-off observed is the increased calculation time for OLS and SVD steps. Consequently, the next phase of this work involves implementing these operations within custom Triton kernels to amortize latency. By viewing the cache through the lens of reconstruction fidelity rather than just memory capacity, we can develop more sustainable architectures for long-context inference.

Reading between the lines, the increase in latency was so significant that they didn't want to include it before they had a chance to try and optimize the problem away first.

Still interesting research. Hope they get good results!
scythmic_waves
·3 months ago·discuss
Is it?

Your reasoning relies on this being true:

> [CRQCs] will be slow, expensive, and power hungry for at least a decade

How could you know that? What if it was 5 years? 1 year? 6 months?

I predict there will be an insane global pivot once Q-day arrives. No nation wants to invest billions in science fiction. Every nation wants to invest billions in a practical reality of being able to read everyone's secrets.
scythmic_waves
·3 months ago·discuss
That was also a great read, thanks!
scythmic_waves
·4 months ago·discuss
I dabble in "um actually"s myself (especially given that my original comment was one), so no worries :)

I don't disagree with your comment exactly. But I primarily wanted to push back on a common response to scientific works. Something to the effect of "Well obviously, everyone knew that!".

Except they didn't because they (presumably) didn't actually investigate. And even after the science, they still don't _know it_ know it. But post-scientific inquiry, they have a much stronger claim to the knowledge than they did before. So the type of dismissal in the root comment is seriously missing the point.
scythmic_waves
·4 months ago·discuss
It's not a tautology because it's not guaranteed. There are plenty of plausible sounding claims that fail to be true. That's why science is needed: to provide _empirical_ evidence for/against a claim.
scythmic_waves
·4 months ago·discuss
It's possible to use manufacture whey protein without cows:

https://en.wikipedia.org/wiki/Whey_protein#Microbial_product...

It's not theoretical either. You can buy vegan dairy products made from this method today.
scythmic_waves
·6 months ago·discuss
Ohhh thank you! I thought the same as the parent comment: I expected that button to turn off the animation immediately. I guess the author wanted the yellow background to "melt" the snowflakes?
scythmic_waves
·6 months ago·discuss
Wow fever dream is right! The beginning reminds me of 'Dark City' (1998):

https://www.youtube.com/watch?v=dO6ApZlxqo8

Sidenote: is that Clancy Brown doing the voice over on the 'Home' commercial?
scythmic_waves
·7 months ago·discuss
I used this recently for my resume and I recommend it.

I have the technical background to write Latex and Typst documents but I honestly didn't want the headache. Plus I'm the type to futz with styling all day long instead of putting down actual content. RenderCV was simple to use and did exactly what I wanted.
scythmic_waves
·7 months ago·discuss
Yep. I punch literally everyone I meet in the face.

I have the power to do it. Why would I not?
scythmic_waves
·7 months ago·discuss
> as a code reviewer [you] are only expected to review the code visually and are not provided the resources required to compile the code on your local machine to see the compiler fail.

As a PR reviewer I frequently pull down the code and run it. Especially if I'm suggesting changes because I want to make sure my suggestion is correct.

Do other PR reviewers not do this?
scythmic_waves
·7 months ago·discuss
Borgo [1] is basically that.

Though I think it's more of a hobby language. The last commit was > 1 year ago.

[1] https://news.ycombinator.com/item?id=40211891
scythmic_waves
·9 months ago·discuss
The first link is a mistake. It's supposed to be the thing being discussed here: https://news.ycombinator.com/item?id=45170164.

The 2nd link seems reasonable to me? Why does a study about 25k workers in Denmark (11 occupations, 7k workplaces) not count as evidence? If there was a strong effect to be found globally, it seems likely to be found in Denmark too.

Also, what about the other links? The discussions about the strange accounting and lack of profitability seem like evidence as well.

If anything, this article struck me as well-evidenced.
scythmic_waves
·6 years ago·discuss
If you have trouble selling a product without that stuff, does it make a difference?