Readit News logoReadit News
N1H1L commented on Data on How America Sold Out Its Computer Science Graduates   ifspp.substack.com/p/data... · Posted by u/haskellandchill
carom · 8 months ago
That first point is not comparing students, it is saying that the H1B visas issued that year all have jobs lined up (which is a requirement of the visa). Those jobs are what the new graduates would normally be competing for.
N1H1L · 8 months 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.
N1H1L commented on Data on How America Sold Out Its Computer Science Graduates   ifspp.substack.com/p/data... · Posted by u/haskellandchill
N1H1L · 8 months 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.

N1H1L commented on Define policy forbidding use of AI code generators   github.com/qemu/qemu/comm... · Posted by u/todsacerdoti
N1H1L · 9 months ago
I use LLMs for generating documentation- I write my code, and ask Claude to write my documentation
N1H1L commented on Show HN: Wetlands – a lightweight Python library for managing Conda environments   arthursw.github.io/wetlan... · Posted by u/arthursw
oezi · 9 months ago
As someone new to Python: what was ever the appeal of conda that uv doesn't satisfy?
N1H1L · 9 months ago
As someone using Python from 2017, there was no uv then, and conda worked fine but was glacially slow.
N1H1L commented on Pyrefly vs. Ty: Comparing Python's two new Rust-based type checkers   blog.edward-li.com/tech/c... · Posted by u/edwardjxli
N1H1L · 9 months 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?

N1H1L commented on Show HN: Wetlands – a lightweight Python library for managing Conda environments   arthursw.github.io/wetlan... · Posted by u/arthursw
mushufasa · 9 months ago
> Wetlands not only simplifies the creation of isolated Conda environments with specific dependencies, but also allows you to run

I've been using Conda for 10 years as my default package manager on my devices (not pipenv or poetry etc). I started because it was "the way" for data science but I kept with it because the syntax is really intuitive to me (conda create, conda activate).

I'm not sure what problem you are solving here -- the issues with conda IMO are that it is overkill for the rest of the python community, so conda-forge has gradually declined and I typically create a conda environment then use pip for the latest libraries. Managing the conda environments though is not my issue -- that part works so well that I keep with it.

If you could explain why you created this and what problems you are solving with an example, that would be helpful. All package managers are aimed at "avoiding dependency conflicts" so that doesn't really communicate to me what this is and what real problem it solves.

N1H1L · 9 months ago
I used to use conda, but have switched entirely to uv now
N1H1L commented on "We're building a new static type checker for Python"   twitter.com/charliermarsh... · Posted by u/shlomo_z
StackTopherFlow · a year ago
Have you tried beartype? It's worked well for me and has the least overhead of any other runtime type checker.

https://github.com/beartype/beartype

N1H1L · a year ago
I think TypeGuard (https://github.com/agronholm/typeguard) also does runtime type checking. I use beartype BTW.
N1H1L commented on UV Tricks   bitecode.dev/p/uv-tricks... · Posted by u/BiteCode_dev
N1H1L · a year ago
My one issue with uv is that uv publish does not still have a —skip-existing flag like twine has.
N1H1L commented on The Swift compiler is slow due to how types are inferred   danielchasehooper.com/pos... · Posted by u/paraboul
KerrAvon · 2 years ago
It’s not, actually, any more than any other language. That was Guido’s original plan, but show a page of modern Python code to someone who’s never seen it before and they’ll run screaming. There is a minimal subset where you can say it reads like pseudocode, but that’s a very limited subset, and, like AppleScript, you have to have a fair amount of knowledge to be able to write it fluently.
N1H1L · 2 years ago
I am more and more convinced that type checked Python is not always the best idea. The people who are the most virulently pro type checking in Python are not data science folks.

Python's type ecosystem's support for proper type checked data science libraries is abysmal (`nptyping` is pretty much the most feature complete, and it too is far from complete), and has tons of weird bugs.

The Array API standard (https://data-apis.org/array-api/latest/purpose_and_scope.htm...) is a step in the right direction, but until that work is close to some sort of beta version, data science folks will have tons of type errors in their code, in spite of trying their best.

u/N1H1L

KarmaCake day845March 20, 2020
About
I build computing solutions to scientific problems.
View Original