N1H1L

Joined 6 years ago

Karma
845
Submissions
439
Member since
Mar 20
I build computing solutions to scientific problems.
View on Hacker News

Recent submissions

Comment · 3 months ago
> AI is an inherently anti-social, anti-human technology, and this rewrite is the perfect example of that.

This is a very weird issue to be mad about, and can be extended to multiple technologies - if you think about it, from computers to cellphones.

Comment · 4 months ago
Why not? I maintain markdown files explaining everything (this is committed). Also the Python code is typed and has detailed numpydoc docstrings.
Comment · 4 months ago
Not true. The CdA (coefficient of drag multiplied by frontal area) matters far more for range than the weight for range. That is a smaller EV, which may very well be heavier can have a higher range and efficiency.
Comment · 1 year ago
And you have to apply to get that job. And the vast majority of companies would prefer a US citizen or an LPR for that job, because there is no guarantee that you will get the visa approved.
Comment · 1 year ago
There are a lot of errors in that article. Like line 1, the idea that foreign students get jobs before Americans do. Quite the opposite in real life. Go to any school, and see the employment rates in that school for US vs foreign students.

Also H1B pays FICA taxes, that exemption is only for OPT. The OPT exemption can be easily removed.

Comment · 1 year ago
I use LLMs for generating documentation- I write my code, and ask Claude to write my documentation
Comment · 1 year ago
As someone using Python from 2017, there was no uv then, and conda worked fine but was glacially slow.
Comment · 1 year ago
I have a problem with Python's `Optional` type. For example for this following code:

   from typing import Optional, Union
   def square(
      a: Union[int, float], 
      b: Optional[int] = 2
   ) -> float:
      c = a**b
      return c

Many type checkers throw an error because `Optional[int]` actually means `int | None` and you cannot square an `int` or a `float` with a `None`. Is there any plans for *ty* around this?
Comment · 1 year ago
I used to use conda, but have switched entirely to uv now
Comment · 1 year ago
I think TypeGuard (https://github.com/agronholm/typeguard) also does runtime type checking. I use beartype BTW.
Comment · 1 year ago
My one issue with uv is that uv publish does not still have a —skip-existing flag like twine has.
Comment · 2 years ago
Comment · 2 years ago
ADHD is also very strongly linked to cigarette smoking, by the way. What I mean is that nicotine is a form of self-medication
Comment · 2 years ago
True. Honestly they should have taken the second bet in the 2010s and come up with a clean sheet 737 successor. It would have been bold, but the company would have been in far better shape today

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton