Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
721.
▲
by
maleldil
2y ago
The search engine is one of my most visited websites daily, and it's the gateway to other websites. It makes perfect sense to pay for it if the quality is superior to its alternatives, which I find to be true. If you haven't alrea
722.
▲
by
maleldil
2y ago
It does because you're still responsible for managing the lifetimes, even if you don't explicitly call malloc/free. Automatic memory management is reference counting and GC.
723.
▲
by
maleldil
2y ago
> People would be vegetarians in a heartbeat if they saw how meat is produced. No, because most people wouldn't care.
724.
▲
by
maleldil
3y ago
The joke misses the mark because Lisp code usually coalesces all the parentheses in the same line at the end of the block. It does make sense for Ruby, though.
725.
▲
by
maleldil
3y ago
It surprises me how many people here can be extremely critical of Firefox/Mozilla and claim that Chrome-based browsers are better when they're _so much worse_. I'm not saying that Mozilla is infallible - they're definite
726.
▲
by
maleldil
3y ago
If you link to a private repository, your GitHub profile can still be seen, which violates anonymity.
727.
▲
by
maleldil
3y ago
Do you mean the `help()` function in the REPL? I agree that it's very useful, but I don't see it used well within text editors (e.g. neovim hover on pyright doesn't show the full help text). I'd also like to add that in
728.
▲
by
maleldil
3y ago
> This is probably an unpopular opinion There's a reason The Illustrated Transformer[1] was/is so popular: it made the original paper much more digestible. [1] https://jalammar.github.io/illustrated-transformer&
729.
▲
by
maleldil
3y ago
Do you have experience with it in production? Is it a drop-in replacement with respect to existing pyright configuration?
730.
▲
by
maleldil
3y ago
They fulfil different roles. pydantic models would be an alternative to dataclasses, attrs or data-centric classes in general. TypedDict is used when you're stuck with dicts and can't convert them to a specific class.
731.
▲
by
maleldil
3y ago
Python has also seen a sizable movement towards using types as part of the design, such as Typer, FastAPI and Pydantic. Existing mainstream libraries are also slowly adopting types, such as pandas and numpy (including `numpy.typing`). For t
732.
▲
by
maleldil
3y ago
This doesn't work. It still shows the paywall.
733.
▲
by
maleldil
3y ago
Isn't Marginalia playing a completely different game from Kagi? AFAIK, Marginalia isn't trying to be a general-purpose search engine. PS: Lovely username =)
734.
▲
by
maleldil
3y ago
> TypeScript made it quite obvious what’s possible only with simple type checking. Typescript's type system is anything but simple.
735.
▲
by
maleldil
3y ago
LLMs are unable to say that they don't know something. They just generate nonsense.
736.
▲
by
maleldil
3y ago
FWIW, this is a very US-centric view. In the UK, you will usually do an MSc + PhD in 4.5 years: 1 year for an MSc and 3.5 for a PhD. You can double that time if you want to do it part-time, in which case you can continue working.
737.
▲
by
maleldil
3y ago
This is available for Rust. It might be for other languages. You can show the types as hints in the editor, or you can hover the variables to see the types. The latter is available for many languages, including Python and Go.
738.
▲
by
maleldil
3y ago
> Easier to write by whom? Most people? I have no love lost for Go, but most (if not all) programmers have experience with imperative code, making it very easy to learn, even if the syntax is ugly. Elix is from a different paradigm, so y
739.
▲
by
maleldil
3y ago
I stand corrected. I was familiar with the first option, which coupled the dependencies with the platform, whereas I wanted a CUDA version on Linux and a Metal version on macOS. However, this works perfectly with Poetry 1.8 and Pytorch 2.2.
740.
▲
by
maleldil
3y ago
I don't think PDM solves that directly. What I do is have different lock files for different platforms (e.g. Linux/CUDA and macOS/Metal), but pyproject.toml lists only "torch".
741.
▲
by
maleldil
3y ago
> Multiple versions of CPython can be installed and used together without the use of any extra tools. I.e. the solution to this "problem" is simply to learn how to do that. How do you do that? For example, if you're on Ubu
742.
▲
by
maleldil
3y ago
How are you installing Pytorch with CUDA with Poetry? I stopped using Poetry because it wouldn't automatically get the CUDA version; instead, it would install the CPU version. I migrated to PDM, which does the right thing.
743.
▲
by
maleldil
3y ago
Similarly, Portuguese's "ensaio", which means "rehearsal".
744.
▲
by
maleldil
3y ago
They said high_er_. It's not controversial to think that C++ and Rust are higher-level than C.
745.
▲
by
maleldil
3y ago
Using external libraries is important because it lets you focus on what's important for your project. C++'s lack of a proper package manager means we're all reinventing the wheel because adding dependencies is non-trivial. Ca
746.
▲
by
maleldil
3y ago
I think they're close enough that it depends on your use case. IME, which is mostly generating Python and shell code, Gemini Advanced is faster, less lazy and generates overall better solutions than GPT-4. It also seems to be more up-t
747.
▲
by
maleldil
3y ago
Hmm. I'm not sure how I feel about that. Certain mental health conditions are recognised as disabilities in the UK, and the people affected are entitled to support at work [1]. Still, I agree that it doesn't exempt one for their a
748.
▲
by
maleldil
3y ago
Regarding the latter group, are you talking about mental illnesses self-diagnosis or something like that? Sorry, I'm not sure what you mean. I'm especially confused about "some kind of protected status".
749.
▲
by
maleldil
3y ago
> some or even most people need to do real hard work on themselves Isn't this what people that go to therapy are doing?
750.
▲
by
maleldil
3y ago
For the vast majority of OSS projects, you're much better off using Git and GitHub in terms of drawing attention and attracting contributors.
More ›