HNHacker News
TopNewBestAskShowJobs

merijnv

1,071 karma · joined January 10, 2010

merijn@inconsistent.nl
submissionscomments
merijnv··on A small French privacy ruling could remake adtech
Consent-based personal data processing must be optional. That's pretty explicit in the GDPR. You cannot predicate service on a user opting-in (consenting). That's not consent. That's coercion, and the GDPR pretty explicitly bans it.

"But how can we monetise our service if we can't get paid via exploitation of personal data of our users?"

Don't know, don't care, not my problem. The ad industry has proven itself incapable of self-regulation, so the GDPR explicitly destroys this entire business model. Figuring out a new that works is the industry's problem.

merijnv··on Google may shut down its news service in Europe
> Correct me if I'm wrong, but Hacker News would technically be affected by the same Link tax. It would probably not be enforced but still.

The "link tax" isn't a tax on actual links. That name is a misnomer, it applies to links that reproduce key parts of the linked content inline.

So, for example, Google News links duplicating the headline and providing a summary. Because, in essence, Google News is copying content from news organisations/sites reducing their traffic (usually skimming headlines is enough to cherry-pick the few things you care about) while themselves profiting (keeping people on Google sites and around Google ads longer).

Whether this "link tax" is the right solution is debatable, but I hope we can agree that Google and Facebook abusing their dominant position this way isn't health for the world.

This does not apply to HN, because HN isn't reproducing any of the linked content inline.

merijnv··on The EU's Link Tax Will Kill Open Access and Creative Commons News
> As long as analytics don't produce any personal data of an individual and only aggregate data or even anonymized data, it should be perfectly fine to do without any banner.

Even if they did produce personal data, they very likely wouldn't need a banner. For processing personal data you merely need a lawful basis and documented processes, and asking consent is (intentionally) the least attractive lawful basis for using personal data. Consider for example the "legitimate interest" lawful basis:

> processing is necessary for the purposes of the legitimate interests pursued by the controller or by a third party, except where such interests are overridden by the interests or fundamental rights and freedoms of the data subject which require protection of personal data, in particular where the data subject is a child.

If you're using analytics to, say, optimise accessibility/usability of the site, then it should be fairly straight forward that the legitimate interest of both you and user (of improving the site) outweighs the "privacy harm" of processing that personal data. (Of course, using it for anything else will land you in hot water if you argue this).

Even a 3rd party data processor like Google Analytics would be fine, if they're 1) GDPR compliant and 2) you have a data processing agreement with the provider.

90% of websites who don't do shady things with your personal data should never require any banner or opt-in prompt. The fact that most of the web now does is incompetence, ignorance, intentional annoyance to provoke legislation change, or a mix of these.

merijnv··on A Parable by Dijkstra (1973)
> Is Haskell still a preferred introductory language to enter the Functional Paradigm with?

I say yes, for a two reasons. 1) Enforced purity means you can't just fall back to your old imperative style as coding and use it as a crutch, and 2) it's the "most different" functional language, it will expose you to more than just functional programming and thus teach you more.

Learning Haskell will teach you: pure functional programming, algebraic datatypes, laziness, and ML-style types. All of which are worthwhile imo.

ML-style typing and algebraic datatypes you could also learn in F#/Ocaml/SML, but pure FP and laziness are two things that are very much worth learning and only apply to a handful of languages. And of that handful Haskell is really the only one with an ecosystem and community that makes it practical to write actual projects in.

merijnv··on Understanding contravariance
> So I immediately hit a block as I'm struggling to understand why I need the notion of a Functor to understand what in the end looks like just lazy mapping of a function over a stream.

You don't need to understand Functor to understand "map over stream", no. But it turns out that Functor (and to slightly lesser extent Contravariant and Profunctor) keep showing up everywhere. It's not just stream processing, they show up in writing parsers, data structures, DSLs, software transactional memory...

For example, "computation that produces either an error or a result" and "transforming the result IFF the operation was successful" is also captured by Functor. And so is "perform IO and then transform the result of that IO". And "apply this function to all elements in a datastructure".

So, once you 1) realise that all these cases can be generalised to functors and 2) write down what the lawful behaviour if Functor is (i.e. "the spec"), we can suddenly start writing generic code that works for any Functor. So when I make 'Source' a Functor, my users get all the generic code written for any Functor for free.

Similarly Monoid, Applicative, Monad, and all these other abstractions occur all over the place. And you get this positive feedback cycle. We have generic code that works for any type that's an instance, so if we make new types instances of them, we get all this generic code for free. But the more types are instances, the more incentive there is to write even more generic code using these abstractions. Which in turns encourages ever more instances, etc.

So you never need to "understand" the abstractions for any specific instance/operation. It's just that if you have a lot of use-cases described by the same abstraction, recognising that this abstraction captures all these cases lets you get a lot of code reuse. And not only that, but also a powerful toolkit that you can use for working with basically any other library/code you encounter supporting them.

In Haskell Monoid, Functor, Applicative, Monad, and co provide you a toolbox that you end up able to reuse again and again for tons of different libraries all supporting them. These abstractions didn't gain wide-adoption for the sake of "theoretical elegance" (though they are elegant), they gained wide adoption due to the sheer pragmatic benefit they provide when programming.

As an example, Applicative itself was only invented in 2004, I started learning Haskell in 2007 and by that time about 80-90% of libraries in the ecosystem had started using it. You don't get that kinda adoption if you don't have anything to show for it :)

merijnv··on Understanding contravariance
Well, one example I like when people ask me "what's contravariant good for?" is the following intuition. Suppose we're doing stream processing. We might have a datatype 'Source a' which is a source that produces a stream of a's.

'Source' is an example of a Functor. We can use 'fmap :: Functor f => (a -> b) -> f a -> f b' as '(a -> b) -> Source a -> Source b'. So, if we a function 'a -> b' we can turn a source of a's into a source of b's. Nice.

In such a library we would obviously also want a 'Sink a', this is a datatype that consumes a stream of a's. For example, it might write these a's to disk. Now, clearly it doesn't make sense for 'Sink' to be a functor. Think about it, if we have a sink that writes a's to disk, how would a function 'a -> b' affect it? Sure, we could turn all a's into b's, but then what? We don't know how to do anything with b's.

However, 'Sink' is a Contravariant (Functor). So, let's have a look at that. 'contramap :: Contravariant f => (a -> b) -> f b -> f a', so '(a -> b) -> Sink b -> Sink a'. If we have a 'Sink' that writes 'b' to disk and a function that turns a's into b's we can obviously construct a 'Sink a' that consumes a stream of a's, converts them to b's and passes them to the original 'Sink'.

And then there's a third abstraction not mentioned in the original post. The 'Profunctor', a Profunctor is a type that has two arguments and is contravariant in the first one, while the second is a regular Functor. In other words, if we have 'Pipe a b' this type can be made a Profunctor which comes with 'dimap :: Profunctor p => (a -> b) -> (c -> d) -> p b c -> p a d', which hopefully looks very similar to both Functor and Contravariant. In our stream processing example 'Pipe a b' would correspond with a pipe that consumes a stream of a's and turns it into a stream of b's which we can use to plumb 'Sink' and 'Source' together. We can both contramap it's first type argument to change what we can feed into it, as well as fmap the second type argument to alter what it produces.

These are from the only cases where these classes show up, but I hope they give some relatively easy to follow example on how these classes can capture some common scenario.

merijnv··on The GDPR blog post
> I don't feel obliged to accept their shitty privacy policy, and in return they are not obliged to serve me their often equally shitty content.

Yes and no. Yes, in the sense that you can argue that. No, in the sense that the GDPR just says "no, you cannot ask people to pay with personal information". So either they must show me the article even if I opt-out of giving my information. Or they must make reading their article conditional upon something else (say, paying them). They CANNOT make it conditional upon my consent to use my personal data, because that's just coercing me into clicking "yes", which is exactly what GDPR is supposed to curb.

merijnv··on GDPR: Don't Panic
> My email signup forms are very clear about marketing use, and are double opt in, and subscribers can opt out with a single click. But my research suggests that this is still not GDPR compliant unless there is an explicit consent, which I believe will reduce email signup rates.

But if it required user activity to register for those lists AND you explicitly identified them as for marketing purposes, that seems like you already HAVE consent? I mean, what do you imagine consent to mean other than "an active affirmation from the user that they're ok with this". If it's indeed double opt-in AND clearly communicated, it seems you clear that bar by a mile?

merijnv··on GDPR: Removing Monal from the EU
Well, it's wrong in the sense that profiling activities require a "lawful basis", consent is one of the possible lawful basis available.

So you can profile without consent IFF you can convincingly justify said profiling via one of the other lawful bases. But those won't really let you do blanket profiling willy-nilly either and come with other strings attached.

merijnv··on In an Era of ‘Smart’ Things, Sometimes Dumb Stuff Is Better
The would be the F16 if memory serves me well.
merijnv··on Learn from your attackers – SSH HoneyPot
If your network connection drops long running jobs keep running, no setup.

I do most of my work on our university cluster over SSH. I can close/shutdown my laptop at any time (or have my connection drop) and as soon as I SSH back into the server all my editors, shells, running jobs, etc. are exactly how I left them.

merijnv··on Reddit raises $200M at a $1.8B valuation
Pump & dump is roughly the following:

1) Be rich/famous enough for people to pay attention to what you do

2) Pump a bunch of resources into something (company, stocks, whatever)

3) Everyone concludes there must be value, because you're investing your own cash

4) Others start investing, increasing the value further

5) You sell (dump) your stake at the new price before everyone realises they've invested in something worthless.

Say you invest $1 million in $1 shares and the extra investment/interest from others raises the share price to $1.20, you sell everything and get $200k profit for no work. Everyone else is left holding shares which turn out to be worthless.

merijnv··on MS Paint is here to stay
> Pinball had to be removed for this sort of reason.

What? No. It was removed because it was a 32bit application written by a 3rd party and there was a hard to fix bug on 64bit windows that made it unplayable, so they dropped it.

Source: Raymond Chen - https://blogs.msdn.microsoft.com/oldnewthing/20121218-00/?p=...

merijnv··on Learn Ethereum smart contract programming
Sure, you CAN verify Turing machines, but verifying languages that AREN'T Turing complete is sufficiently simpler. So why not make your verification work easier by using a total language? The only real argument against that would be "we can't do what we want in a total language".

I don't buy the argument that what people want to do with smart contracts requires Turing-completeness. In fact, as time goes on I become more and more convinced that Turing completeness is highly overrated. Almost all code wants to do finite and/or structurally inductive operations. The only case that doesn't fall in that are things like request loops where you want to "infinitely" wait, process request, loop back to waiting. But even those things can be done in total languages via co-induction, so exactly why do we want to make our analysis/verification work more difficult by using a non-total language for things like Ethereum?

merijnv··on Apache Foundation disallows use of the Facebook “BSD+Patent” license
> "BSD+patent"+"revoked patent grant because you sued Facebook over another patent" is pretty much the same as just BSD from the start.

Not really. If you have BSD with no patent grants you can at least argue that there's an implicit patent grant. If there's an explicit patent grant which you violated/got terminated that defence is clearly not going to fly.

merijnv··on Linus: “I no longer feel like I can trust ‘init’ to do the sane thing”
> Most of it is because of launchd's atrocious doc.

Really? I read up on launchd a year or so ago to setup backups and I though the documentation was amazing...Which docs are you referring to?

merijnv··on A federal court has denied a pre-trial motion to dismiss a GPL enforcement case
> I'm guessing Stallman is completely disgusted by the possibility of dual licensing.

You'd be wrong, though. He considers it a legitimate alternative to "not releasing source at all":

> I consider selling exceptions an acceptable thing for a company to do, and I will suggest it where appropriate as a way to get programs freed.

https://www.fsf.org/blogs/rms/selling-exceptions

merijnv··on Linear types make performance more predictable
Well, one of the usual examples would be:

    let ones = 1 : ones in ones
Here ':' is the cons operator, prepending something to a list, so here you defines 'ones' to be '1' followed by 'ones', which in (GHC) Haskell, compiles down to a datatype that has a pointer to the list element ('1') and the tail ('ones', i.e. itself).

EDIT: I realised I forgot to say what it actually does, in case that's not obvious. It's an infinite list of, well, ones...

merijnv··on YubiKey 4C
Isn't disabled SMS overkill for most casual thread models? As I understand it SMS would require someone to MITM the telecom network OR snoop the local antenna when you receive it on your phone. Which is a danger if you expect, like, nation-state adversaries.

But if I'm, say, protecting my GitHub account against Russian mafia hackers, that still seems perfectly fine?

merijnv··on Cryptkeeper sets the same password “p” independently of user input
The original paster didn't say that a null pointer was incorrect, merely that using NULL in C++ was. Which, in recent versions of C++ it certainly is. The correct way to specify a null pointer in C++ is 'nullptr', NULL has been deprecated because it's definition '(void*)0' leads to typing issues for templates.
merijnv··on Spotify excessively writing to drive
Oh? Where do you see this? I'm already on version 10.0.42 and I still see ridiculous writes to disk.
merijnv··on A Taste of Haskell
A lot of stuff happens behind closed doors. Standard Chartered Bank has 1.5 million LOC of GHC Haskell and another 1 million LOC of their own internal Haskell implementation.

I'm also aware of another 5 or so big banks having/building Haskell teams for developing internal tools, but all this stuff is hidden. The biggest, public, project I'd say is FaceBook's Haxl (as pointed out elsewhere in this thread).

merijnv··on Fossil: A decentralized version control, bug tracking, and wiki software
Because, I'm guessing, a lot of people using Mercurial (like me) are just using GitHub. Mercurial has had a functional bidirectional git-mercurial bridge extension for over half a decade and I've never ran into issues with it.

The result is that I happily keep using Mercurial locally even when collaborating with people using Git. I don't see the need to have Mercurial specific hosting. (Well, until Bitbucket finally starts working with obsolence markers so I can use Changeset Evolution).

merijnv··on Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers
Option (and/or option) is the usual name of Maybe in ML style languages like SML, ocaml, etc.
merijnv··on 37M Compilations: Investigating Novice Programming Mistakes [pdf]
Are you familiar with Lamdu? http://www.lamdu.org/
merijnv··on BSD vs. Linux (2005)
> Based on this thread, I'd say the problem is a lot of people haven't given them the time. > If you select your hardware, they work pretty flawlessly.

Maybe the fact that I have to give them time is one of the major problems? You know how much time I invested in getting my Windows and OSX desktops to work flawlessly? Zero.

merijnv··on How a comment on Hacker News led to 4½ new Unicode characters
Excuse me? No continental European language has the word stop in it? You should probably learn more languages before making claims like that.

Stop is a word in Dutch (the first recognisable use of the word I could find dates back to 1287). And German has stopf. I couldn't find a date for that, because my German isn't good enough to read their etymology dictionary, but it's source is Old High Germanic, so it's safe to say that stop has been around in continental Europe in Germanic languages since Medieval time at the very least.

Edit: A quick further Google search reveals that Norwegian and Danish (and thus most likely Sweden too) have the variation "stoppe" derived from Low German.

Seems a bit disingenuous to claim it was adopted despite "not being an existing word" if two languages use the exact rendering on the sign and 4 others use/have words that are so closely related that they have the same spelling, but 1 or 2 additional letters.

Further edit: French apparently adopted the word stop from English...in 1792

merijnv··on When Haskell is Faster than C (2013)
To be fair, John Harrop is notorious for having an axe to grind with Haskell. He's very knowledgable, but often makes gross mischaracterisations of Haskell. Which is a shame, because he knows better than that.
merijnv··on ASUS delivers BIOS/UEFI auto-updates over HTTP with no verification
> The other problem is many people wont have pre-existing copies of the required private key available.

We're talking about software updates, you embed the key INSIDE the software to avoid this problem.

merijnv··on Does not GPU compute
Does anyone actually implement OpenCL 2.0 yet? Last I checked not even AMD supported it, and they're the only company that has a reason to care about advancing OpenCL.
← PreviousPage 3 of 11Next →