Readit News logoReadit News
agons commented on Partially Matching Zig Enums   matklad.github.io/2025/08... · Posted by u/ingve
agons · 5 months ago
Is there a reason the Zig compiler can't perform type-narrowing for `u` within the `U::A(_) | U::B(_)` "guard", rendering just the set of 2 cases entirely necessary and sufficient (obviating the need for any of the solutions in the blog post)?

I'm not familiar with Zig, but also ready to find out I'm not as familiar with type systems as I thought.

agons commented on Python Pandas Ditches NumPy for Speedier PyArrow   thenewstack.io/python-pan... · Posted by u/blacktulip
agons · 7 months ago
It gets worse the further you go, this was where I had to bail:

> the format is much favored by AI frameworks such as TensorFlow and PyCharm.

agons commented on Microsoft Copilot shows AI increasingly appears like an unwanted party guest   theregister.com/2025/04/1... · Posted by u/rntn
jasonjamerson · 8 months ago
"Appears like" is not correct. You could say "looks like," but that's not the title of this article.
agons · 8 months ago
Could mean "appear" as in "show up"
agons commented on I made an open source Windows app to rewind and search everything on screen   tonoko.notion.site/I-made... · Posted by u/haruharuha
LeonB · 2 years ago
Neither, lol. Just happened across the comment within five minutes of it being posted. I think it was one of the first times I visited HN today.
agons · 2 years ago
> one of the first times

I don't think you can say it's "neither"! :)

agons commented on Doppler Effect analysis of two videos of the Al-Ahli hospital attack   twitter.com/earshot_ngo/s... · Posted by u/beepbooptheory
jiggawatts · 2 years ago
Yeah, it’s pretty obvious that when launching thousands of ghetto rockets made from dug-up water pipes and stolen fertiliser, a few of them won’t go a hundred percent to plan.
agons · 2 years ago
I don't think your "obvious" is the same as that of the person you're replying to.
agons commented on Apple's Windows Game Porting Toolkit gets faster with new update   appleinsider.com/articles... · Posted by u/dev_tty01
nateb2022 · 2 years ago
> On the high-end M2 Ultra, "Cyberpunk 2077" was able to run at approximately double the frame rate under the new toolkit.

This is especially impressive considering Cyberpunk 2077 can be very graphically intensive. Doubling the frame rate is quite a feat.

agons · 2 years ago
Tough to gauge how impressive this is without a before/after for comparison tbh.
agons commented on Parsing time stamps faster with SIMD instructions   lemire.me/blog/2023/07/01... · Posted by u/mfiguiere
dataflow · 2 years ago
Halting the advancement that would've ordinarily happened is not "ignoring it", it's doing something to actively counter it. That "something" ends up canceling the previous trajectory to evaluate to "nothing", but that doesn't happen through ignorance - it required a countering action.

Example: You're driving your car when pedestrians appear in front of you. What does "ignoring" them constitute? Stopping the car, or running into them at the previous speed?

agons · 2 years ago
I'd say that the people counting leap seconds are the ones "doing something".

At the point they needed to be inserted, Unix systems carry on counting seconds as units of time as they pass, "ignoring" the need to add 1 for the purposes of accounting.

agons commented on Proposing a struct syntax for Python   snarky.ca/proposing-a-str... · Posted by u/BerislavLopac
nomel · 3 years ago
I believe it should be ": Any".
agons · 3 years ago
Hey, you're leaning into it too much!

Who are people who are against typing in this day and age?

agons commented on JupyterLab 4.0   blog.jupyter.org/jupyterl... · Posted by u/jonbaer
fluidcruft · 3 years ago
Do you have a way to store data directly into the notebook? I do a bunch of device testing and I have master notebooks setup to analyze and condense raw data. I use papermill to evaluate the master notebook to generate a report. But I want to also store/attach intermediates (say a named numpy array) into the notebook for further analysis.
agons · 3 years ago
The problem with that is that Jupyter requires a back-end to do any of the actual processing that runs the code in the cells.

Only way I can think to make the html file truly portable while fully functional would be to embed a python interpreter and all required libraries as wasm.

Could be possible with pyodide? I haven't used it.

u/agons

KarmaCake day45March 20, 2021View Original