Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
peq
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
peq
4y ago
Isn't this limit per client ip, server ip, and server port? ( https://stackoverflow.com/a/2332756/303637 )
2.
▲
by
peq
5y ago
> Pixel 6 will have the most layers of hardware security in any phone**. > **Based on a count of independent hardware security subsystems and components. That does not seem like a meaningful measure for security.
3.
▲
by
peq
5y ago
It would be nice if pure benchmark papers were a thing. Most of the time system papers get accepted for some new idea. The evaluation section is often biased towards the new idea. Independent benchmarks could fix this.
4.
▲
by
peq
5y ago
How would you make the button send a request without js and without navigating to another page? Maybe css to load an image on :active or is there some better way?
5.
▲
by
peq
5y ago
I tried following the webdev topic and it's just interaction-baiting bullshit. Like loops vs reduce. Or "offend a webdev with 3 words".
6.
▲
by
peq
5y ago
I think implicit conversions were added originally to support Java compatibility without boilerplate code. It then turned out that they could be used to simulate extension methods, which is probably the main use case for implicit classes in
7.
▲
by
peq
5y ago
I don't think i will be much of a problem. Braces are already optional in Scala2 if you only use a single expression. The change just gives you the option to be more consistent and remove braces everywhere.
8.
▲
by
peq
5y ago
Scala is one of the smallest typed languages in terms of syntax. See slide 13: https://www.slideshare.net/Odersky/preparing-for-scala-3#13 With scala 3, syntax has been simplified even more, e.g.: No more braces necess
9.
▲
by
peq
5y ago
If I rememver correctly, the python plugin for vscode asks me whether I trust the project before running anything. At least that was the case when I last opened a Jupyter notebook in vscode.
10.
▲
by
peq
5y ago
Applications don't need generics, but libraries do. The lack of generics is the reason for a lack of many useful libraries that I miss when writing applications in Go. Things I missed lately: Sets, maps with arbitrary keys, lists, sort
11.
▲
by
peq
5y ago
It is related in some way. Since Go has no generics, it does not have datatypes like Sets, Maps (go has maps, but only supports a few types as keys), or Graphs. It also does not have immutable collections. This complects data modeling.
12.
▲
by
peq
5y ago
At first "mathy" objects seem not so important, but it also involves: - Vectors, matrices - Immutable containers (lists, sets, maps, etc.) - Domain specific languages (regular expressions, constraint languages, etc.) And without g
13.
▲
by
peq
6y ago
A vacuum "filled" tanker would be lighter than a helium filled one :D
14.
▲
by
peq
6y ago
I would be careful in mirroring a site. It's very likely to violate copyright or similar laws, depending on where you are. I think archive.org is considered fair use, but if you put it on a personal or even business page it might be di
15.
▲
by
peq
6y ago
An underappreciatd feature of Zoom is the 40 minute restriction in the free version. Meetings are more productive with an enforced time limit.
16.
▲
by
peq
6y ago
Some problems I had with Snaps: * Installed VScode. The terminal in VScode was in a different environment from the system terminal, so used different Python environments. Took me a while to figure out why installing a package was not workin
17.
▲
by
peq
6y ago
They can probably learn from the German reunion. A lot of mistakes could have been avoided, like letting western companies buy and close east German companies that were previously owned by the state, or closing eastern youth organizations.
18.
▲
by
peq
6y ago
As I understand this, the approach here is to bet on personal responsibility. This technology cannot be used to enforce quarantines as the authorities have no access to the data. Basically, we have to stop 2/3 of infections to get an R
19.
▲
by
peq
7y ago
> it would be even better if TS could do this automatically like Flow though That would imply that the same function signature could produce different type checking results at the call site. That is something I find extremely frustrating
20.
▲
by
peq
7y ago
Your version still has the problem that since Java 7 the substring method allocates a new String, which in unnecessary when it is only borrowed to the parseLine function and not needed afterwards. What you probably want is a view that reuse
21.
▲
by
peq
7y ago
It's easy to run tasks in parallel with just "await". Just start your tasks without await, store the promise in a variable, and then use await later when you actually need the value.
22.
▲
by
peq
8y ago
Mathematicians should do more computer verifiable proofs to avoid discussions like this. > Definitions went on for pages, followed by theorems whose statements were similarly long, but whose proofs only said, essentially, “this follows i
23.
▲
by
peq
9y ago
FLAVOR: Ubuntu desktop HEADLINE: fix smart autohide of unity launcher DESCRIPTION: it is really annoying that the launcher does not appear sometimes, when moving the cursor to the edge of the screen. There are several bug reports for this i
24.
▲
by
peq
10y ago
I think the only reason to use json over the binary format is readability, so why care about this?
25.
▲
by
peq
10y ago
I agree. In particular in languages without null you will have a lot of Option types in the mapping. You no longer can generate useful type definitions from the proto spec.
26.
▲
by
peq
10y ago
Without versions you don't have package management, you have a download script.
27.
▲
by
peq
12y ago
I think sometimes types lead to simpler designs. For example why can't "then" just have the following type: Promise A E -> (A -> A') -> (E -> E') -> Promise A' E' That would eliminate some s
28.
▲
by
peq
12y ago
Regular expressions just need 3 things: sequence, alternatives (|), and repetition(*). Everything else is an extension.
29.
▲
by
peq
12y ago
http://principles-wiki.net/ A wiki with some nice explanations of design principles.
30.
▲
by
peq
13y ago
Are S-Expressions a standardized data format? It looks very similar to Json, but harder to read.
More ›