Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simiones
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
421.
▲
by
simiones
2y ago
So the fact that there are 5 different tools that (attempt to?) fix this problem is a sign that it is not a problem, from your point of view?
422.
▲
by
simiones
2y ago
Exceptions are no different from Go's error types (and in general interface types in any language) from this point of view. If moduleA is doing something like `errors.Is(err, ModuleBError)` on an error that was returned from moduleC wh
423.
▲
by
simiones
2y ago
If we knew for a fact there was an alien society living lives similar to ours on some planet, sure, I agree. But if we found out that there are bacteria-like micro-organisms on Europa, or even "fish" in the oceans there, I don
424.
▲
by
simiones
2y ago
The point the poster above was making is that we have already seen how society changes when we believe we've found basic proof of life, because we really believed we did a few times in the past: nothing changes. Sure, finding actual
425.
▲
by
simiones
2y ago
You're getting a very clear error: your sample is not valid HTML, because, as the error informs you, HTML elements can't self close. Why would it reference some other document type for which this may or may not be valid syntax? Sh
426.
▲
by
simiones
2y ago
Per these Microsoft docs [0], it seems that it should still be possible to open a raw socket on Windows 11, as long as you don't try to send TCP or UDP traffic through it (and have the right permissions, presumably). Of course, to open
427.
▲
by
simiones
2y ago
There are numerous non-HTTP protocols used successfully on the Internet, as long as they run over TCP or UDP. Policing content running on TCP port 443 to enforce that it is HTTP/1.1 over TLS is actually extremely rare, outside some ver
428.
▲
by
simiones
2y ago
Those two links say that CVEs can be one of two categories: universal vulnerabilities or exposures. But the examples of exposures are not , in any way, "any bug in the kernel". They give specific examples of things which are kno
429.
▲
by
simiones
2y ago
This is completely false. The CVE website defines these very clearly: > The mission of the CVE® Program is to identify, define, and catalog publicly disclosed cybersecurity vulnerabilities [emphasis mine]. In fact, CVE stands for "
430.
▲
by
simiones
2y ago
How many corporate or residential firewalls are configured to allow SCTP traffic through?
431.
▲
by
simiones
2y ago
WebRTC decided they liked SCTP, so... they run it over UDP (well, over DTLS over UDP). And while HTTP/2 might fail over to HTTP/1.1, what would an SCTP session fall back to? The problem is not that Windows doesn't have in-ker
432.
▲
by
simiones
2y ago
I doubt there is, because it's just not a very popular thing to even try. Even WebRTC, which uses SCTP for non-streaming data channels, uses it over DTLS over UDP.
433.
▲
by
simiones
2y ago
Creating a new transport protocol for use on the whole Internet is a massive undertaking, not only in purely technical terms, but much more difficult, in political terms. Getting all of the world's sysadmins to allow your new protocol
434.
▲
by
simiones
2y ago
First and foremost, you can't use SCTP on the Internet, so the whole idea is dead on arrival. The Internet only really works for TCP and UDP over IP - anything else, you have a loooooong tail of networks which will drop the traffic. Se
435.
▲
by
simiones
2y ago
The problem is that the biggest win by far with QUIC is merging encryption and session negotiation into a single packet, and the kernel teams have been adamant about not wanting to maintain encryption libraries in kernel. So, QUIC or any ot
436.
▲
by
simiones
2y ago
> Moreover, I'd suggest you review the history of quantum mechanics, because Einstein did not invent field theory, just as Newton did not invent or understand the Lagrange or Hamiltonian formulations, nor statistical mechanics, even
437.
▲
by
simiones
2y ago
> The Greek pantheists weren't that different to Marvel or Star Wars fans. What are you basing this on? (And note, I think you mean "polytheists", as pantheists are people who don't typically believe in gods, but in t
438.
▲
by
simiones
2y ago
There are plenty of people "practicing magic" even today that are fully convinced they are producing physical results through non-physical means. I would bet anything that there has always been a mix of both of these types of peop
439.
▲
by
simiones
2y ago
The rules of physics have a very clear purpose: to predict how and when some natural phenomenon occurs. So the question can be re-phrased as: why did we come up with the notion of a neutrino, what phenomenon did it explain? We certainly did
440.
▲
by
simiones
2y ago
> It totally makes sense from a Go perspective: You created a struct, tried (but failed) to populate it with some json data, and ended up with a value initialised to its zero-value. This is fine :) I do agree that there are good reasons
441.
▲
by
simiones
2y ago
Sure, in production you'd definitely want something like that, but the context was an interview exercise, I don't think you should go coding generic wrappers in that context.
442.
▲
by
simiones
2y ago
Go's JSON decoder only cares if the fields that match have the expected JSON type (as in, list, object, floating point number, integer, or string). Anything else is ignored, and you'll just get bizarre data when you work with it l
443.
▲
by
simiones
2y ago
You can, but then it's a lot of work to actually traverse that map, especially if you want error handling. Here is how it looks like for a pretty basic JSON string: https://go.dev/play/p/xkspENB80JZ . It'
444.
▲
by
simiones
2y ago
That of course works, but the problem is then using this. Take a simple JSON like `{"list": [{"field": 8}]}`. To retrieve that value of 8, your Go code will look sort of like this: var v map[string]any json.Unmarsh
445.
▲
by
simiones
2y ago
I have a quibble here. A hash table, the basic CS data structure, is not a two-dimensional data structure like a map, it is a one-dimensional data structure like a list. You can use a hash table to implement a Map/Dictionary, and ess
446.
▲
by
simiones
2y ago
What are you using that can cmd+click to take you to a definition, but can't also take you to an interface implementation? I develop Go in Emacs with the built-in eglot + gopls, and M-. takes me to the definition, C-M-. takes me to the
447.
▲
by
simiones
2y ago
I completely disagree. I have been successful in building a new project for my company with myself and the entire team being completely new to Go when we started. Did we have growing pains, and some sub-par decisions? Absolutely. Do we righ
448.
▲
by
simiones
2y ago
Still very unlikely that they'd come back to a, say, Independent Republic of Florida instead of the USA they left from, but hey, it's been a crazy couple of years.
449.
▲
by
simiones
2y ago
I think the QA issues are by far the most important part. A security component of this type, by its nature, has to be able to prevent your computer from doing anything at all, since any part of userspace (at least) could be compromised. The
450.
▲
by
simiones
2y ago
A badly written eBPF program at this level could still prevent you from using your computer though. Not in this specific way, but if you use eBPF to prevent other things from running, and you accidentally deploy an eBPF program that, say, t
More ›