Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Rotareti
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
Rotareti
7y ago
Since you are familiar with nodejs: poetry == npm pyenv == nvm pipx == npx No big difference, IMO.
32.
▲
by
Rotareti
7y ago
I think you have two options then: A) (if possible) migrate away from the services you mentioned. B) lock-in deeper and deeper with the biggest advertising company on the planet.
33.
▲
by
Rotareti
7y ago
> I remember this particular data point being refuted by cars becoming more and more streamlined. I've been driving the same car for 20 years. I remember cleaning the bugs from the roof rack after each longer trip. There were so man
34.
▲
by
Rotareti
7y ago
Something in that direction, but I'd imagine it more like a Rust with a high-level-variant than a JS/TS with a low-level-variant ;)
35.
▲
by
Rotareti
7y ago
I can imagine the next big programming language will be one that is split into two language-variants: the "low-level-variant" and the "high-level-variant". The high-level-variant is a dynamic language with optional typ
36.
▲
by
Rotareti
7y ago
> I would honestly like an option to "compile" python to check for typing inconsistencies You can use mypy for that: https://github.com/python/mypy
37.
▲
by
Rotareti
7y ago
> I wonder if there is anything that can really be done, outside of something like Cython. I compile my cli tools with nuitka [0], the resulting binaries take half the time to start. I find the difference quite notable. [0]: https:&#x
38.
▲
by
Rotareti
7y ago
Thanks for the clarification! I guess it would make a lot of sense for a tool such as jtc to use SQL/JSON path language then. I'm sure it'll be the most common JSON query language soon.
39.
▲
by
Rotareti
7y ago
I agree. Modern SQL supports JSONPath. Postgresql 12 has support for it. A lot of people are/will be familiar with it.
40.
▲
by
Rotareti
7y ago
The svelte examples kept me interested until I reached the logic section [0]. Coming from JSX/TSX svelte's template language is a huge downer for me. https://svelte.dev/examples#if-blocks
41.
▲
by
Rotareti
7y ago
> replace brew python with pyenv. replace pyenv with asdf [0]. asdf is like pyenv, but it works for all major programming languages. [0] https://github.com/asdf-vm/asdf
42.
▲
by
Rotareti
7y ago
I second this. asdf is awesome! It works for all major languages. In case of Python, I use asdf to install the needed interpreter version and I use pipenv to create/handle the virtual environments. It's a perfect combo.
43.
▲
by
Rotareti
7y ago
You can write Python like pseudo-code. Sometimes the results look almost like plain English. For example, if I have to design software for a micro-controller that uses C/C++ I sometimes write down the algorithm in Python (with editor s
44.
▲
by
Rotareti
7y ago
To me the biggest difference is that [Reason]React focuses on components which encapsulate state, while Elm focuses on data structures and pure stateless functions. Both approaches have pros and cons. You can design a [Reason]React app simi
45.
▲
by
Rotareti
7y ago
Complaining about unstableness, while chasing fads. Thoughts and prayers are with you ;)
46.
▲
by
Rotareti
7y ago
I think the repairability of the Fairphone 3 is a huge step forward, but in the long run I want a phone that allows me to run an up-to-date OS for as long as I want. The Fairphone 3 will get updates for 5 years, that's not enough if yo
47.
▲
by
Rotareti
7y ago
> "I'm familiar with tool A. Today I tried tool B and I couldn't figure out how to use it correctly, so it must be lacking. Everyone should know!" From the points you make it seem like you haven't really figure
48.
▲
by
Rotareti
7y ago
> Python extensions in Rust? That could be a good thing. Much easier to write a reliable Python extension. I imagine tooling for that already exists and I am simply unaware. There is https://pyo3.rs/v0.7.0/
49.
▲
by
Rotareti
7y ago
> The problem I find with Arch Linux, and this really only has started happening recently, is that for some reason Arch loves to break stuff. Then I must be lucky. I've been using arch on my dev machine without notable breakages for
50.
▲
by
Rotareti
7y ago
Docopt is a killer arg parser for build scripts. I drop a doc-string like this one in every build script and get the command line interfaces for free: """ Install: pipenv install --dev Usage: ma
51.
▲
by
Rotareti
7y ago
That's like saying a household on disposables would be cheaper than one on actual dishes. I haven't done the math, but I'm almost certain it isn't.
52.
▲
by
Rotareti
7y ago
> ... and if the spec is defined first both can be done in parallel. You could simply write the complete interface down in Python/FastAPI without actual implementation and generate the OpenAPI spec from that interface. That way bo
53.
▲
by
Rotareti
7y ago
> I would love to see the same done for Kubernetes. What I want is a kubeconfig file that links me to a paid account somewhere, and whenever I run `kubectl apply -f foo.yml`, I pay by the millisecond for whatever resources get created. H
54.
▲
by
Rotareti
7y ago
Calling the FFI a pet feature is nonsense.
55.
▲
by
Rotareti
7y ago
If the go-silo offers everything you need than yes, there is no need for a good FFI in go... but if you want access to the low-level ecosystems of C/C++/Rust without a heavy penalty, then it might not be an option.
56.
▲
by
Rotareti
7y ago
I think you don't get the point. Most people don't create such interfaces, but the libraries/systems they work with use them a lot, at least in other languages. This is for example the reason why there won't be a large m
57.
▲
by
Rotareti
7y ago
> Probably Go will be the next hotness in 5 years. I think it will be difficult to grow a large ecosystem for a language with very poor FFI performance [0] in the long run. Golang's poor FFI performance is the number 1 reason I woul
58.
▲
by
Rotareti
7y ago
I agree. Most of the issues the parent mentions have been solved with poetry and pipenv. And if you need "to create a redistributable executable with all your dependencies". You can either use pyinstaller [0] or nuitka [1] both of
59.
▲
by
Rotareti
7y ago
> I've been learning a bit of Go and I like what I've understood so far but one thing that seems somewhat lacking in the Go Eco system is mathy projects. I think this has to do with golangs poor FFI performance.
60.
▲
by
Rotareti
7y ago
I went through the svelte examples and I was exited until I reached the If block example: {#if user.loggedIn} <button on:click={toggle}> Log out </button> {/if} To me such template la
More ›