HNHacker News
TopNewBestAskShowJobs

Zalastax

213 karma · joined July 19, 2015

MSc thesis "Singly typed actors in Agda": http://studentarbeten.chalmers.se/publication/256251-singly-typed-actors-in-agda-an-approach-to-distributed-programming-with-dependent-types
submissionscomments
Zalastax··on First complaints under the GDPR lodged within hours
At least that screen will always have everything opted out already (as mandated), so it's easy to just press the next-button.
Zalastax··on Notes on Idris (2017)
Usually, Agda programs would not use Haskell libraries very much, even though they could. The reason seems to be that it is an unstable language and we are still figuring out how to do dependent types correctly. To me, working in Agda is like working in a very powerful version of Haskell, but for most people it's more about working in a research language. Idris and Agda are quite similar: don't build a company on them, but expect really cool ideas to spawn from them. Dependent types is really an awesome idea.
Zalastax··on GDPR Version of USA Today Is 500KB Instead of 5.2MB
How is it harder for a US based company to comply with GDPR than a EU based company?

There is no breakage of the end-to-end principle either. EU can only legislate in their own region, so they can't enforce GDPR outside of EU. A company thqt is GDPR compliant for every user doesn't have to check the IP at all. Any differences stem only from the companies will to keep abusing users data in the rest of the world.

Zalastax··on Bitcoin Gold Hit by Double Spend Attack, Exchanges Lose Millions
Figuring that out sounds like a fun but non-trivial project. Since crypto currencies have different mining schemes one would need to keep track of the hash/$ ratio for each one. I guess the simplest way to do so would be to cross-reference the different mining market places that exists. Do you have other ideas for figuring out the hash/$ ratio?
Zalastax··on How We Found Great Talents for Our Remote Company Without Spending a Fortune
This is the example: https://en.m.wikipedia.org/wiki/Chicago_Tylenol_murders
Zalastax··on Show HN: A complete Bash parser in JavaScript transpiled from Go
An important heads up: "Parsing Bash is Undecidable". https://www.oilshell.org/blog/2016/10/20.html
Zalastax··on GHC Parser Principles
This philosophy is an integral part to the good error reports in TypeScript: https://www.infoq.com/news/2016/05/anders-hejlsberg-compiler
Zalastax··on Leveraging the type system to avoid mistakes
I would not call it a feature. The clean solution would be dependent types so we can model the proposition "that list is not empty" in the type system. It is very neat to have the standard list as your data-type, but accompanying it is a proof that the list has elements. However, dependent types are not mainstream yet and we need a lot more research before that can change.
Zalastax··on "@" on Twitter
It's true that object keys are strings, but the array and object situation of JavaScript is quite confusing. Arrays are indexed by numbers, but still accept string indices, leading to behavior like this: https://stackoverflow.com/q/9526860
Zalastax··on Show HN: RootCause – Record, Replay and Reproduce JavaScript Errors
TypeScript is ahead of Flow in both tooling and type expressiveness. Both can easily be added to an existing code base in incremental steps. I'd go for TypeScript every day of the week, but both are good choices.
Zalastax··on An attempt to upgrade to Webpack 4
Yes, it could have been handled better. I guess you need to consider whether it's best to let newcomers in on the v4 goodness or to avoid aliating users of v3. The pragmatic approach is to at least mention somewhere that v3 users should wait on upgrading.
Zalastax··on An attempt to upgrade to Webpack 4
Whoops, guess it's a good idea to check things before blurting something out. In that case I'm not sure what's best, to let newcomers in on the new goodies of v4 or to avoid confusing previous users.
Zalastax··on An attempt to upgrade to Webpack 4
They haven't released webpack 4 yet.
Zalastax··on An attempt to upgrade to Webpack 4
I know that this is tongue in cheek , but shouldn't we give the maintainers time to solve the documentation before we start complaining too much? The changes they are making seems to make sense to me. They are adopting patterns that the community uses and provide solutions to hacks that have emerged from real needs. Webpack was in my opinion already simple, and it's getting simpler every release. I can't imagine the horrible mess I would have if I went back to gulp.
Zalastax··on Concurrency I can finally understand and write correctly
Exactly! What might not be immediately obvious is that CSP works OK for concurrency, but not for distributed systems. For more details, see 2.1.3 (page 28) of https://eprints.illc.uva.nl/943/1/MoL-2015-02.text.pdf
Zalastax··on Message Passing and the Actor Model
> Pony uses a single message queue for each actor (which is completely invisible at the code level) and typed messages (which syntactically look like functions).

I totally agree with this definition but believe that it leads to awkward programming. The problem stems from forcing the message queue to be FIFO, which does not always make sense. I think the Erlang style selective receive is the correct abstraction, as it avoids having to maintain a separate queue in userland. I understand why Pony didn't go down that road though, we have a lot more shared experience in type systems for function calling compared to message passing.

Zalastax··on Message Passing and the Actor Model
Personally I'm not too fond of Pony's take on the actor model. I believe it is in the models core that every actor is in total control of their own behavior, and the only interaction is via messages that can be interpreted as the receiver pleases. In Pony, it is the sender that directly commands the receiver what it will do next (via function calls/behaviors).
Zalastax··on Stripping CO2 from the air and using it to produce carbon-neutral fuel
We don't want to go back to those levels of carbon in the atmosphere. Doing so would completely disrupt every ecosystem in the world. As pointed out already, carbon neutral refers to a time scale that is in the order of at most a few decades. Anything longer than that would have severe ecological effects.
Zalastax··on Finding Profitable Startup Ideas
Very nice! You hit close to home here! Several ideas that are definitely worth looking into. My problems, which might not be profitable to fix, are:

Very few pieces are composable, we need more things like https://www.prettypegs.com/ Unless you have the capability to build a new IKEA, this is to me the best venue for providing high quality customizability.

Finding furniture is a mess. There's missing information (dimensions, max load), close to useless search, and a bunch of places that sell the same things.

Zalastax··on Finding Profitable Startup Ideas
Furniture is a category or products I have so many problems with (with a viewpoint from Sweden)... I'll let you write some ideas and then chime in with the problems I have seen.
Zalastax··on Elixir on Google Cloud Platform and App Engine
I think a protocol type system like Scribble is a really good solution to the problem. It's very tricky to verify it statically though, so it will take time to get there.
Zalastax··on Elixir on Google Cloud Platform and App Engine
The problem of static types for the communicating parts of the actor model is not really solved yet. In the meantime there's Alpaca-lang and Simon Fowler did a run-time monitor for Erlang with behavioral types from Scribble. I think we'll see some nice progress in this area in a few years.
Zalastax··on Why is Rust difficult?
I hope we'll see more advanced type features added to languages. I find it very annoying when I can't be expressive enough and have to resort to comments and runtime errors. It's a very fine line to walk though. TypeScript is the language that I think is best at walking that line currently.
Zalastax··on Why is Rust difficult?
You'd have to look at niche languages like Coq, Idris, or Agda if you want mathematical proofs. There's a lot of research that needs to be done before proven programs can become the norm.
Zalastax··on Facebook’s Virtual Assistant M Is Dead
The dictionary in keyboard apps is often crowd sourced, especially sentence predictions. Your own common phrases are made more significant as well. I would assume speech to text systems would do the same. Coherent sentences is very important for the recognition algorithms, and you can often see word corrections happening live as you complete your sentence.
Zalastax··on A letter about Google AMP
It's good if it plays some role when the content quality is similar between results. Some pages are so slow or obnoxious that I'd almost rather not get the information at all, than dreadfully waiting for ads and pop-up-modals to load. Perhaps ranking is the wrong tool, but it would be nice if I could know that a site is bloated before clicking the link. AMP lets me know that.
Zalastax··on Building for the Blockchain
How does the blockchain ensure that I can both verify that my vote was counted but can't sell my vote? https://youtu.be/BYRTvoZ3Rho describes one electronic voting system that's supposed to have those important properties, even though I don't fully all the details yet.
Zalastax··on Building for the Blockchain
The major difference is that offchain we use contracts verified (and written to be verified) by humans. For a fridge that might mean that you need to send photo evidence and have a mechanic look at the fridge. In case of disagreement a human court will decide the outcome. It's not always going to get it right, but it's a lot harder to scam systematically. For smart contracts to bring the value of machine verified contracts without human intervention we need the data provided to the system to be verified. Without verification that all parties agree on we will always need human intervention in case of a dispute.
Zalastax··on Doctors' plan for war on sugar
> but they need to pay their own healthcare costs somehow.

I think you should read this as arguing for Tax on Negative Externality, also called a Pigovian tax. Such taxation aims to solve the problem that the social cost of a market activity is not covered by the private cost of the activity.

Zalastax··on Tesla Roadster
He's not the one that made the claim. Look at the usernames.
← PreviousPage 3 of 4Next →