Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
TheDong
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
751.
▲
by
TheDong
2y ago
$ emerge -v starship <...> Running `rustc --crate-name starship --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib <etc> Running `rust
752.
▲
by
TheDong
2y ago
Since go don’t use the libc related time functions on linux, but rather makes syscalls directly, faketime will not work for any programs written in Go.
753.
▲
by
TheDong
2y ago
They advertise markdown support, the ability to export markdown, and the ability to import markdown... However, what they don't say, is that the export and import format aren't compatible and are different subsets of markdown with
754.
▲
by
TheDong
2y ago
It is an explicit goal of the go team to minimize the number of keywords in the language. Simple languages have fewer keywords so go must have few keywords. https://go.dev/ref/spec#Keywords Look how simple that is. Thi
755.
▲
by
TheDong
2y ago
> how do I help? Ads aren't very important really, if you want to help, I recommend donating all your money to those in need and volunteering at a local homeless shelter, soup kitchen, or anything of the like.
756.
▲
by
TheDong
2y ago
The reason iodine works is not because any traffic to any IP on port 53 works, but because they allow traffic to a specific IP, and forward DNS queries. Let's say the plane's DNS server is 192.168.1.53 and your DNS server is 1.1.1
757.
▲
by
TheDong
2y ago
Sorry, I still don't follow. > You don’t allow access to the bootloader from any kernel, thereby afford a relative security in starting 2nd stage You install and update the bootloader and its configuration from your running linux sy
758.
▲
by
TheDong
2y ago
What feature do you need that isn't in the open source version? Why not fork it and implement that feature, and then use that? If you don't want to deal with a company trying to extract profit from you, use the open source version
759.
▲
by
TheDong
2y ago
Can you explain more what security vector you're talking about here, because I just don't see it? Like, as far as I can tell, grub or whatever is a bundle of filesystem and device drivers, with enough info to then execute a kernel
760.
▲
by
TheDong
2y ago
Okay, yup, you're right, the C dependency stuff is gazelle. I'll still claim the meat of what I said was correct: > If bazel allows impurely using that dependency from the host, like bazel allows for python, then you'll be
761.
▲
by
TheDong
2y ago
> Bazel does ignore those comments. Gazelle does not. I really don't understand what you're saying. gazelle does not seem to do anything related to the c dependencies there. The full diff gazelle generated is just changing &quo
762.
▲
by
TheDong
2y ago
> That’s not how Bazel + CGO works at all. It sounds like you are making some guesses here but those guesses turned out to be wrong, sorry. > This means that any of those comments will also get ignored I cloned this example: https:&#
763.
▲
by
TheDong
2y ago
If you look at how cgo is linked, you'll see it's a magic comment in go source code: https://github.com/xthexder/go-jack/blob/bc8604043aba0b6af80... If bazel allows impurely using that dependency fr
764.
▲
by
TheDong
2y ago
They say right there, "To hopefully mitigate the impact of this". Having a mutex right there in the hot path of Instant::now is not great for performance. You expect getting monotonic time to be very fast generally, and some code
765.
▲
by
TheDong
2y ago
> Safari is actually part of the solution ... > Google, like microsoft, <1-3> If you're going to complain about 1-3 for google and ms, I don't think you can praise safari in the same breath. Apple's abused their p
766.
▲
by
TheDong
2y ago
nickel's performance definitely will need some work. It's several orders of magnitude slower than nix for even simple tasks: $ time nix eval --expr "builtins.foldl' (l: r: if l > r then l else r) 0 (builtins.gen
767.
▲
by
TheDong
2y ago
> I feel like the real problem is not helm, nor argocd ... What was really annoying was the constant moving and changing the yaml that kubernetes wanted. That to me sounds like you're angry at helm and argocd, but don't realize
768.
▲
by
TheDong
2y ago
The vector db comparison is written so much like an advertisement that I cannot possibly take it seriously. > Shared slack channel if problems arise? There you go. You wanna learn more? Sure, here are the resources. Workshops? Possible.
769.
▲
by
TheDong
2y ago
> Also, this has been public for months: Posting the hash to twitter as a proof that "something" exists reveals no actual information, so it's not considered making the exploit "public" in any meaningful way. Fro
770.
▲
by
TheDong
2y ago
This feels like one of those things where you're saying something that is maybe technically correct, so you can feel smart, but has no bearing on reality. A store near me sells capers in a short-and-fat glass jar (which even a large sp
771.
▲
by
TheDong
2y ago
All the languages I can think of that have iteration over a slice also have the ability for users to define iteration over custom collections, such as with generators or whatever... yet the comment I'm replying to is saying custom iter
772.
▲
by
TheDong
2y ago
You would be reading your CFO or lawyer's summary of the important points. In this case, the only important point is probably literally just "We filed the S-1, everything went normally". Do you use an accountant to file your
773.
▲
by
TheDong
2y ago
If iterators are hidden magic, how are the following not hidden magic: for i, v := range someSlice { ... Shouldn't that be eschewed as magic, and instead we should write: for i := 0; i < len(someSlice); i++ { v := som
774.
▲
by
TheDong
2y ago
The thing I've been most amazed at about FSD is that there hasn't been any sort of lawsuit around FSD refunds. There are people who paid thousands to tens-of-thousands of dollars for a promise that their car would eventually have
775.
▲
by
TheDong
2y ago
To quote from the judge's judgement: https://courts.delaware.gov/Opinions/Download.aspx?id=359340 > Musk controlled only 21.9% of Tesla’s voting power, so he lacked mathematical voting control... > Defendant
776.
▲
by
TheDong
2y ago
"defer tx.Commit() is nonsensical" It's not pure nonsense, it works in the happy path, and it matches the pattern of how people often handle file IO in go. f, err := os.OpenFile(...) defer f.Close() ... which is
777.
▲
by
TheDong
2y ago
In python it's harder to ignore errors than in Go. In go, I've definitely seen: tx, err := db.Tx() defer tx.Commit() // silently ignores the error on committing, which is the important one That would have mask
778.
▲
by
TheDong
2y ago
What do you think the following does? type Data struct { Moon string `json:"m"` Sun string `jsn:"s"` } func main() { var d Data err := json.Unmarshal([]byte(`{"m": "m1&q
779.
▲
by
TheDong
2y ago
> In a context world, you would use io.Writer/Reader or net.Conn to write small bits of data and check whether the context is cancelled in between 1KB writes (or whatever size). So don't use 'io.ReadAll' or 'io.C
780.
▲
by
TheDong
2y ago
> It does require all of the involved functions to implement support for this, though I think most things do at this point. Except for reading and writing data from a file using 'os.File', or reading and writing data from a net
More ›