Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aldanor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
151.
▲
by
aldanor
3y ago
Why can't you access it from any of the tv boxes (ie Apple TV or any other) and just use the TV itself as one big screen, a bunch of pixels and nothing else?
152.
▲
by
aldanor
3y ago
Why connect any tv to internet?
153.
▲
by
aldanor
3y ago
> they have very many formats implemented It's not "they", it's whoever wants to implement serde support for their own thing, can do it (so, many 3rd party crates have a "serde" feature that can be toggled o
154.
▲
by
aldanor
3y ago
Rust has: - serde; this beats both cpp and Python in terms of not spending a second of dev time on implementing serialisation deserialisation unless you're doing something funky. I would argue that this is one of the cases where it
155.
▲
by
aldanor
3y ago
There's just less need for cython these days. If you're writing a compiled extension, there's pybind11 or, better yet, pyo3, where you can also get access to internals of polars and other libraries. In numeric Python, and esp
156.
▲
by
aldanor
3y ago
Ha, I'm not the only one. Barely ever visit the links unless that's something I'm actually personally interested in, by coincidence. Mostly come here for the comments.
157.
▲
by
aldanor
3y ago
Neovim... regex parsing... uh? https://neovim.io/doc/user/treesitter.html
158.
▲
by
aldanor
3y ago
> However, this is not for everyone; ask a musician if they are really in the weeds of why the instrument is producing music (the physics behind it!). They are probably aware that it's vibrating air, but, in general, they won't
159.
▲
by
aldanor
3y ago
In this case, it means your actual error will be packed and boxed someplace behind a smart pointer, its type will be lost (so you wouldn't be able to match on its specific variants downstream might you want to) but it will be still abl
160.
▲
by
aldanor
3y ago
That's called 'sum types' and that's what Go lacks. See some bikeshedding and ongoing discussion [here]( https://github.com/golang/go/issues/57644 ).
161.
▲
by
aldanor
3y ago
And why should nobody ever do that?
162.
▲
by
aldanor
3y ago
There's also helper crates like eyre simplifying the process of adding context even further (at the cost of type erasure): foo().context("oh no")?
163.
▲
by
aldanor
3y ago
Arguably, "?" Is not hard to read either.
164.
▲
by
aldanor
3y ago
Not entirely sure why a new term and why merge those local 'diffs' to your local 'main' at all? Open PR A-->main, while it's getting reviewed (or maybe it's in WIP state for some reason), create a branch B o
165.
▲
by
aldanor
3y ago
There's been recent advances in joint fitting of multi-output regression forests ("vector leaf"): https://xgboost.readthedocs.io/en/stable/tutorials/multioutp... In theory, this might suit the
166.
▲
by
aldanor
3y ago
Streaming logging framework
167.
▲
by
aldanor
3y ago
And then you show them the black blues note...
168.
▲
by
aldanor
3y ago
Been using Peak Design motorbike handlebar mount to attach iPhone to my e-bike without no problems for a year so far
169.
▲
by
aldanor
3y ago
To put it differently, the new C++ is delightfully horrific at times.
170.
▲
by
aldanor
3y ago
YAML is one of the most ambiguous formats out there, and definitely an overkill for what's needed to describe metadata. JSON - not the most convenient to use for human beings, too much quoting, not too git friendly because of disallowe
171.
▲
by
aldanor
3y ago
"goodResult | barError | bazError" method just don't scale; eventually, especially if using third-party libraries, you may end up with dozens of not hundreds of error types this way. The way Rust does it with its try operator
172.
▲
by
aldanor
3y ago
If on macos, highly recommending Dash for all your programming docs needs for any language. Real gem and a time saver.
173.
▲
by
aldanor
3y ago
You absolutely can forbid unsafe code (within a scope of a particular codebases) and some projects happily do it. "The use is necessary" = absolutely not. Lots (most) of projects wouldn't ever need to dip into unsafe code. An
174.
▲
by
aldanor
3y ago
"Express a correct program" that might end up being incorrect due to programmer's fault. The difference is, you can use unsafe blocks/fns in Rust, in which case it becomes equivalent to C expressiveness-wise; but you can
175.
▲
by
aldanor
3y ago
I've read that paragraph with a /s at the end of it.
176.
▲
by
aldanor
3y ago
... and maybe even your hard drive
177.
▲
by
aldanor
3y ago
On desktop macs, there's strong reasons to use Firefox for many power users
178.
▲
by
aldanor
3y ago
Yea, tree maps needlessly occupy the second dimension whereas just one is sufficient for displaying the main metric.
179.
▲
by
aldanor
3y ago
Or, in other words, a typical positive feedback loop
180.
▲
by
aldanor
3y ago
Does it mean they will appear in GeForce Now and other cloud providers?
More ›