Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
661.
▲
by
maleldil
2y ago
You can use pyenv to create multiple virtual environments with different Python versions, so you'd run your script with (eg) venv311/bin/python and venv313/bin/python
662.
▲
by
maleldil
2y ago
IMO, there's a direct line of improvement between pipenv, poetry, (briefly) rye and now uv. I think the ecosystem is improving over time and will eventually coalesce around a majority platform. I like uv, but I'm unsure if that wi
663.
▲
by
maleldil
2y ago
> arguably schizophrenia should also be considered neurodivergence Isn't it? My understanding of the word is "anyone who experiences the world differently from the social 'normal'", which would certainly include
664.
▲
by
maleldil
2y ago
spf13/cobra and urfave/cli are fine, I think. As sibling said, you can't expect Go to have something like Rust's clap because the metaprogramming capabilities are so different. On the other hand, I find it sad how terrib
665.
▲
by
maleldil
2y ago
Unfortunately, it's nowhere close to Notion tables or spreadsheets in general. Formulas are very primitive (eg aggregation is either sum or mean), the syntax is confusing, and you have to manually re-evaluate them. Tables are Obsidian&
666.
▲
by
maleldil
2y ago
No, not an American. Did you mean that Americans have lower standards than Europeans in this respect? I'm confused about your last sentence. Anyway, my note was specifically about publishing NLP research at ACL conferences (ACL, NAACL,
667.
▲
by
maleldil
2y ago
Even then, there are too many PhDs for few spots in academia and top-tier labs, so there's no way a PhD dropout could compete unless they have some other kind of experience. Also, it's not that hard to publish in high-end NLP conf
668.
▲
by
maleldil
2y ago
"Invest in projects, not papers." is the typical thing you hear from late-stage researchers that forgot what it's like to be a PhD student or early post-doc. We have to publish as much as we can, or our supervisors and commit
669.
▲
by
maleldil
2y ago
Yes, it is. Typed Python supports duck typing to some extent; see typing.Protocol and stuff like Sequence, Iterable, Mapping, etc.
670.
▲
by
maleldil
2y ago
That needs to be explicit for any interacting types. You must define separate classes and explicitly define their hierarchy. This is fine if you control all the types, but it breaks down quickly. The best example is having two TypedDicts wi
671.
▲
by
maleldil
2y ago
I'm not sure what you mean by naming dicts, but Python has TypedDict, where you can define the names and types of specific keys. They only exist for type checking and behave exactly as a normal dict at runtime. In modern typed Python,
672.
▲
by
maleldil
2y ago
"Humans existed for a long time without [...]" is an exceptionally bad argument when you consider that humans have existed for a long time without many unquestionably good modern things, too.
673.
▲
by
maleldil
2y ago
It kind of is, but pre/post-conditions can be more than that. Also, I'd consider it bad form to have type signatures (which they have) and runtime checking the same types. The whole point of having static typing is decreasing the
674.
▲
by
maleldil
2y ago
To Microsoft's credit, both are better alternatives, with VS Code being _significantly_ superior to Atom.
675.
▲
by
maleldil
2y ago
I have no skin in this game, but why are you expecting maturity from a new language? They're not claiming to be production-ready – quite the opposite. It's on version 0.0.5, for goodness' sake.
676.
▲
by
maleldil
2y ago
The website says, "EARLY ALPHA Vapour is extremely young, the syntax might change, things will break, expect bugs." What part of this is giving any sense of stability? It's clearly an experimental language, so I find it hard
677.
▲
by
maleldil
2y ago
(Strict) Typed Python isn't that bad either, and LLMs seem to be quite good at generating that, given how popular Python is. Unfortunately, it tends to generate outdated types (e.g. `List` instead of `list`, `Optional[T]` instead of `T
678.
▲
by
maleldil
2y ago
How does one go from years and decades of imperative programming to becoming fluent in Haskell's style of functional programming? It feels like a steep price to pay when most over languages don't require such substantial re-learni
679.
▲
by
maleldil
2y ago
Not just Arch documentation. It often has general use information, too, applicable to other distros and Unixes.
680.
▲
by
maleldil
2y ago
I feel like part of the problem is Haskell's extremism towards purity and immutability. I find some code easier to express with procedural/mutable loops than recursion, and I believe the vast majority of programmers. I think that
681.
▲
by
maleldil
2y ago
Oh, it's far from common, I know. I had to learn about it to pass the written exam in MG, and I thought it was so weird that I never forgot it.
682.
▲
by
maleldil
2y ago
This (well, the opposite) happens in Brazil, too, but it's much more general. We even have a specific sign for this: "mão inglesa" (English hand).
683.
▲
by
maleldil
2y ago
Are you implying that PyTorch is proprietary?
684.
▲
by
maleldil
2y ago
Would that force them not to give Chrome preferential treatment? Even if Chrome becomes independent, it will still likely be the most used browser. Google could just do what other companies already do, and never test on Firefox anyway.
685.
▲
by
maleldil
2y ago
You could try using Claude's Projects. You can give it examples, documentation and overall guidelines, and maybe that will enable Claude to generate the code you want. Claude 3.5 Sonnet has a context window of 200k tokens, which is eno
686.
▲
by
maleldil
2y ago
Yes. They are tools to manage the user side of packaging (i.e. installing, managing versions, locking, environments) but can't do anything to fix the problematic ecosystem. That is a much harder problem to solve.
687.
▲
by
maleldil
2y ago
> it's only good for the python versions themselves Versioning Python isn't hard. pyenv, asdf, mise, now uv... I honestly don't see what Nix brings to the Python ecosystem. I can see using it to version Python if you alrea
688.
▲
by
maleldil
2y ago
Second language speakers, careless typos because HN is not that important that you _need_ to check everything…
689.
▲
by
maleldil
2y ago
If you really need conda, then you're on a _different_ nightmare than standard Python packaging.
690.
▲
by
maleldil
2y ago
For Python, specifically? As in, pyproject.toml-compatible tooling, with virtual environments and the like? I've see Nix being used for compiled languages, and maybe I'm missing something, but I haven't really seen it used to
More ›