HackerTrans
TopNewTrendsCommentsPastAskShowJobs

peq

no profile record

comments

peq
·vor 4 Jahren·discuss
Isn't this limit per client ip, server ip, and server port? (https://stackoverflow.com/a/2332756/303637)
peq
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·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
·vor 5 Jahren·discuss
A vacuum "filled" tanker would be lighter than a helium filled one :D
peq
·vor 6 Jahren·discuss
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 different. For example Google News in EU is very limited in what content they may steal from other web pages.