Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nu11ptr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
361.
▲
by
nu11ptr
4y ago
I personally have never used a debugger in Rust. Logging and printing has typically been enough. For those use cases where it is tough to see the output (tests, windows services, etc.) I wrote the `rdbg` set of crates. It is essentially ide
362.
▲
by
nu11ptr
4y ago
The Boehm collector exists and is mentioned in the article, but is not part of the standard library. Typical memory management practice is to store on the stack as much as possible reclaming memory as it goes out of scope. Larger chunks of
363.
▲
by
nu11ptr
4y ago
Only when used in a naïve way, which Rust does not. For example, the increments/decrements are done only when "clone" is called and scope exit respectively, and based on Rust ownership/borrow checking, is rarely done com
364.
▲
by
nu11ptr
4y ago
> I do still have a weird feeling of getting back to the stone age whenever i get a nil pointer panic though. i wish go devs could figure out a way of fixing those last quirks without impacting the rest too much. Unfortunately fixing the
365.
▲
by
nu11ptr
4y ago
While it is true I couldn't afford the games I played as a teen, I'm confident I would have pirated them anyway. It had less to do with the game, and more about the conquest. When you discovered that a certain game had a keygen or
366.
▲
by
nu11ptr
4y ago
I agree, but I also like that everything is on github because it is a single place to search. Is there a meta-search engine for github/gitlab/codeberg/bitbucket/sourceforge/etc.? It would be useful and make it less
367.
▲
by
nu11ptr
4y ago
Honestly, I just think Java was ahead of its time. I hated sites with applets because they felt slow to startup and run. That problem is long gone with modern computers.
368.
▲
by
nu11ptr
4y ago
Sure, you can do something like that, but it is unnecessary. Like Python, you can use "enumerate" to give you a tuple that that will give you `i` automatically. https://play.rust-lang.org/?version=stable&mode=d
369.
▲
by
nu11ptr
4y ago
It sounds like the author is not aware of the `FromIterator` trait which is implemented for `Result` which allows short circuiting to a `Result` type. Instead of collecting to: Vec<Result<T,Error>> You collect to:
370.
▲
by
nu11ptr
4y ago
Here you go - it might not help much, this is a pretty specialized field of network engineering. If you were in a service provider, you were likely aware of this tech otherwise probably not at all. From my head: LDP = Label Distribution Pro
371.
▲
by
nu11ptr
4y ago
There is no doubt FRR had value, but like all tech, there was a complexity that came with it, so it really only made sense for certain applications. Heavy voice/video networks were a no brainer, but other TCP-based applications that we
372.
▲
by
nu11ptr
4y ago
ha - I've had my "interop" language in my head forever. FFI primarily by generating code directly into every lang (haxe-style), but ideally with a better lang behind it (imagine Python and Rust had a baby). Oh if I had the ti
373.
▲
by
nu11ptr
4y ago
I have no first hand knowledge, but my guess is their code generator would use the lowest compatible C++ version that has all the features they need - to maximize compatibility. If it was me I would actually be trying to avoid using the new
374.
▲
by
nu11ptr
4y ago
I noticed Nim allows using the Go GC as an option. How does this work? Does it compile into Go as a target language? Or can it link with Go's (ever changing) ABI? Or is the Go GC available as a standalone C lib? I'm just curious h
375.
▲
by
nu11ptr
4y ago
I do think that presidents should be charged and tried just like anybody else. IMO they should get no special treatment - same laws and process should apply. It does seem like an odd indictment in light of past crimes committed by president
376.
▲
by
nu11ptr
4y ago
How does this make money?
377.
▲
by
nu11ptr
4y ago
I do think this is a nice thing in general and one thing I find annoying in Ocaml without an interface file
378.
▲
by
nu11ptr
4y ago
Wouldn't this be true of all statically typed languages that don't allow type inference in function signatures?
379.
▲
by
nu11ptr
4y ago
Golang is special because pure Go programs tend to have a closed ecosystem with its own linker (that typically don't link to libc or other C libs) so it makes static linking very easy. Other languages can certainly do static linking, b
380.
▲
by
nu11ptr
4y ago
This is the first I'm hearing of it. I wonder how many others as well are seeing this via HN the first time? I would imagine MS has been aware of this since more or less inception, however, any product threat isn't really about ex
381.
▲
by
nu11ptr
4y ago
I wonder... is MS likely going to make it harder to swap the URL on the official copilot client in light of this? Will they continue hosting the "competition"?
382.
▲
by
nu11ptr
4y ago
Yep, M:N cooperatively scheduled. It also requires a "runtime" which Rust didn't want to have
383.
▲
by
nu11ptr
4y ago
I still recall very well how frustrating "buffer under-runs" were...in a day and an age when we really need a real-time OS, but we simply weren't running them. I can't decide if I love this doc or if it gives me post tra
384.
▲
by
nu11ptr
4y ago
> Question: does one have to be more smart to learn and build stuff in rust than one has to be for something like C#? Possibly - it requires an understanding of memory ownership and lifetimes which is something the GC in C# takes care of
385.
▲
by
nu11ptr
4y ago
> I don't want to downplay the library, but how hard is Javascript/HTML for the majority of python programmers? Not easy, esp. when you throw in CSS and the build systems
386.
▲
by
nu11ptr
4y ago
> And where are the equivalent libraries for Go, Rust and Java? Not aware of anything yet for Go/Rust, but Java and Python have had libs like this for a while now (to the point that Pyjamas hasn't been updated in a decade): * G
387.
▲
by
nu11ptr
4y ago
This looks cool. As someone who is CSS challenged, I have been waiting for more frameworks like this (seems similar in concept to pyjamas/vaadin/gwt). Ideally, with an even lower barrier of entry and hopefully well maintained. EDI
388.
▲
by
nu11ptr
4y ago
This is the size of the binary or RAM usage? If the size the binary, does it matter in most cases? If the size of RAM, yeah, I can see how that seems a lot for a terminal.
389.
▲
by
nu11ptr
4y ago
Why would you deposit more than the insured amount in a bank? Could it not be split over multiple accounts and/or banks? Or pursue an institution that has additional insurance? (my brokerage, for example, uses Lloyd's of London fo
390.
▲
by
nu11ptr
4y ago
Honestly I just recall the format of the document and how helpful it was, not how I accessed it. It has been too long (30 years?) for me to recall details like that.
More ›