Better HN
topnewbestaskshowjobs
Log inSign up

babyloneleven

50 karma · joined Oct 13, 2018 (8y ago) · 44 submissions

Submissions

comment 7y ago · link · parent

This app exists, it's called indrive

comment 7y ago · link · parent

VSCode (and Atom) feels like an Emacs with Javascript instead of Lisp anyway

comment 7y ago · link · parent

They make many useful websites unusable though. And when you whitelist you're then vulnerable, because there's no way to know some Javascript doesn't contain an exploit (do you run anti-virus on the web pages you visit?)

comment 7y ago · link · parent

Also

https://en.m.wikipedia.org/wiki/End-to-end_auditable_voting_...

comment 7y ago · link · parent

There are crypto schemes that can solve those problems. Some work with paper ballots as well.

https://en.m.wikipedia.org/wiki/ThreeBallot

comment 7y ago · link · parent

Your examples are garbage logic because array overruns are so harmful that they should be hard errors. Of course, this requires a runtime cost, that can be elided in most cases by the compiler's optimizer. But even low level languages nowadays can be safe by default (see Rust) - the unsafe behavior should always be a conscious, well studied decision by the developer.

comment 7y ago · link · parent

How is Python non-Algol?

comment 7y ago · link · parent

Sometimes it's not worth to optimize too farther from the current local optimum. UI designers have a "budget" for weirdness and unfamiliar conventions and must spend it wisely

comment 7y ago · link · parent

Also, if you rely on a third party to do identification for you, you simply don't need a blockchain.

Blockchain is heavily constrained by the vital requirement of not trusting any third party whatsoever. If you relax this, you can build much simpler systems that are equally secure regarding non-repudiation and other properties but doesn't need proof of work.

comment 7y ago · link · parent

In some sense it's the contrary.. the typeclass hierarchy has a lot of idealism that won't fly in Haskell's comparatively pragmatic Prelude (DivisionRing? Really?)

They even backtracked their version of IO, that used row types to track effects - because it just wasn't worth it.

comment 7y ago · link · parent

This is achieved merely by following the rules. But what are the most appropriate rules? It depends on the taste of the logician

comment 7y ago · link · parent

I also grew up with racists and homophobes. Actually my mom is the most racist person I know. Should I be happy with it?

comment 7y ago · link · parent

https://www.theguardian.com/technology/2014/jun/29/facebook-... is concerning

comment 7y ago · link · parent

Survivorship bias. The ones that broke aren't around to compare.

comment 7y ago · link · parent

The rayon crate has a global state: the entire program must use the same thread pool, even if different crates depend on different rayon versions.

It uses a Cargo feature meant to be used by native libraries: you typically can link them only once (or else the build will fail when it finds repeated symbols), so Cargo must ensure only one is present on the entire dependency graph. And IIRC Rayon depends on an auxiliary crate that fakes a native lib and provides the thread pool.

If this seems very hacky and convoluted, it's because it is.

comment 7y ago · link · parent

You are the site owner. The bouncer works for you.

Your users didn't hire the bouncer and don't want to be tracked. Secretly, the bouncer may use this data for nefarious purposes. You can't control how the bouncer will use the data.

comment 7y ago · link · parent

This is cruel. Someone that is donating should think about the welfare of the recipients. Otherwise it's just massaging one's own ego.

comment 7y ago · link · parent

Typescript's type system is unsound by design. And it doesn't have the sophistication of Haskell. So it isn't that similar IMO

comment 7y ago · link · parent

Well, it is if you are deaf.

comment 7y ago · link · parent

I hope DO's CTO review your case too.

comment 7y ago · link · parent

Rust has Redox (desktop focused) and TockOS (embedded).

I happen to (wishfullly) think the next major OS will have capability-based permissions at the core level, a model a bit like Mobile permissions but composable. Good thing that Google's Fuschia is based on capabilities. It's in C++ though.

comment 7y ago · link · parent

There is no open source license like that.

comment 7y ago · link · parent

Of course I trust China more. China never militarily supported a coup in my country.

comment 7y ago · link · parent

Hey it's not senseless. Rust doesn't have subtyping (except for lifetimes), and specially not subtyping between a parent class and its child. This is on purpose. Subtyping is required for the usual class based OOP but greatly complicates type inference.

However, we don't have yet means to emulate downcasting for trait objects, except by using the Any trait (which is a footgun). Until then, class based OOP is more expressive than whatever Rust is doing now.

comment 7y ago · link · parent

Can you use views or other feature to tie together a table and its mapping table into a single view?

comment 7y ago · link · parent

I'm not finding how to edit, but, it's called escape analysis

comment 7y ago · link · parent

Compilers of managed languages already do this optimization when they can prove that a variable has a static lifetime. Look up scape analysis.

The trouble is, this is hard to do for non-trivial code (and in the general case is uncomputable).

comment 7y ago · link · parent

Waste heat can always be reused, but the problem is that the lower the temperature difference the lower the efficiency is, and what you don't extract to do useful work gets converted back to waste heat

At some point it becomes uneconomical to use this waste heat rather than discarding it.

comment 7y ago · link · parent

The set of all problems that can be solved by a Turing machine if there's an answer (possibly hanging if there's no answer) sits at the top of the complexity hierarchy (it's equivalent to the recursively enumerable languages)

The usual complexity classes of decision problems, such as P and NP, are subsets of what a Turing machine can solve, and so are weaker complexity classes.

comment 7y ago · link · parent

It shouldn't be part of the Executive but its own branch, as independent as the judiciary
12