HackerTrans
TopNewTrendsCommentsPastAskShowJobs

peq

no profile record

comments

peq
·4 वर्ष पहले·discuss
Isn't this limit per client ip, server ip, and server port? (https://stackoverflow.com/a/2332756/303637)
peq
·5 वर्ष पहले·discuss
> 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.
peq
·5 वर्ष पहले·discuss
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.
peq
·5 वर्ष पहले·discuss
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?
peq
·5 वर्ष पहले·discuss
I tried following the webdev topic and it's just interaction-baiting bullshit. Like loops vs reduce. Or "offend a webdev with 3 words".
peq
·5 वर्ष पहले·discuss
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 Scala2.

And implicit parameters were probably just the result of trying to make type classes modular.

The CanBuildFrom approach came later than implicit parameters (https://stackoverflow.com/questions/1722726/is-the-scala-2-8...).
peq
·5 वर्ष पहले·discuss
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.
peq
·5 वर्ष पहले·discuss
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 necessary. Top level declarations. Extension Methods.
peq
·5 वर्ष पहले·discuss
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.
peq
·5 वर्ष पहले·discuss
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, sorting, removing duplicates, priority queues, parser combinators, list transformation functions (map, filter), transactions.

Some of these exist for Go, but with awkward APIs.
peq
·5 वर्ष पहले·discuss
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.
peq
·5 वर्ष पहले·discuss
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 good support for matrices, the data science and ML people will just use Python instead of Java to build their libraries. And then everyone will use the language with the best libraries, even if they don't use matrix math in their code.

For regular expressions, you have to use a DSL embedded in Strings in Java instead of using operators like | as operator on regular expressions directly.
peq
·5 वर्ष पहले·discuss
A vacuum "filled" tanker would be lighter than a helium filled one :D