Better HN
topnewbestaskshowjobs
Log inSign up

emillon

2,853 karma · joined Jan 10, 2011 (15y ago) · 394 submissions

Paris-based λ-term writer.

    https://github.com/emillon/
    http://blog.emillon.org/
    @etiennemillon
    me @ <username> . org
Submissions

1.

Tomy Turnin' Turbo Dashboard Outrun Arcade (2017)(circuitbeard.co.uk ↗)

3 points · by emillon · 9y ago · discuss

2.

Curl 7.51.0 Released(curl.haxx.se ↗)

181 points · by emillon · 10y ago · 32 comments

3.

Remove ARM NOREAD Section Support from GAS(sourceware.org ↗)

6 points · by emillon · 10y ago · discuss

comment 10y ago · link · parent

When I used pwsafe and keepassx they had this option.

comment 10y ago · link · parent

You might want to filter local and unroutable URLs, for example entering 127.0.0.1 renders a MAMP Pro page.

comment 10y ago · link · parent

It's a common feature of password managers.

7.

How to deploy OCaml on Heroku(medium.com ↗)

3 points · by emillon · 10y ago · discuss

8.

Cultivating a Code Review Culture(blog.fogcreek.com ↗)

9 points · by emillon · 10y ago · discuss

comment 10y ago · link · parent

There are no semantic problems with this, but typing will get in the way: you can express it fairly easily if all the functions have the same type (such as Int -> Int): actually it's just 'foldr ($)'. But it is difficult to type a list of functions such as each member's return value has the same type as the next one's parameter (symbolically, [an-1 -> an, ..., a1 -> a2, a0 -> a1]). It's easier to refer to the composition of such functions, which is why you would see it as 'h . g . f'.

comment 10y ago · link · parent

It's more like the pipe operator in ocaml (http://blog.shaynefletcher.org/2013/12/pipelining-with-opera...). The lisp version has the extra advantage that you don't have to repeat it between all the intermediate functions. ((->> 2 (* 100) str count) vs 2 |> (* 100) |> str |> count).

comment 10y ago · link · parent

I'm hoping to make them fashionable again! http://webring.club/ :)

12.

CVE-2016-2178: OpenSSL DSA follows a non-constant time codepath(openwall.com ↗)

5 points · by emillon · 10y ago · discuss

comment 10y ago · link · parent

This kind of proofs usually are separated in two steps:

- correction: define a loop invariant. Assuming the loop terminates, it will hold when the program exits the loop.

- termination: define a loop variant, something that changes at every iteration. If you can find a variant that is a strictly decreasing sequence of natural numbers (or an increasing, bounded sequence), you've established that the loop terminates.

Once you've done these two steps you know that the program terminates and the invariant holds at the end. (in your case, you won't be able to find a good variant - depending on the floating point semantics you use of course).

comment 10y ago · link · parent

This is correct, I missed this!

comment 10y ago · link · parent

That's assuming that this particular string was already present somewhere in the binary. Since it is only present as a reference, you would not see the string in a binary patch.

comment 10y ago · link · parent

That is my opinion too, but I would go even further and say that this change could have been made on the compiled binary.

This kind of statement must take 10-15 bytes max to patch and the build boxes are typically less safe than source control systems.

comment 10y ago · link · parent

The letters in this password spell "sun su".

comment 11y ago · link · parent

Thanks for the heads-up!

For some reason mailchimp was returning 403s from heroku, this must be related to this morning's outage. This is fixed and I added the emails that failed.

comment 11y ago · link · parent

(shameless plug)

I totally agree, that was awesome to discover random websites. I think that there's still a place for webrings these days, so I'm creating the webring club. Feel free to subscribe on http://webring.club/ or shoot me an email (address in profile) if you're interested in exchanging ideas!

20.

Designing an Intel 80386SX development board(blog.lse.epita.fr ↗)

4 points · by emillon · 11y ago · discuss

21.

A lens-based ST20 emulator(blog.emillon.org ↗)

3 points · by emillon · 11y ago · discuss

22.

MetaFun: Compile Haskell-like code to C++ template metaprograms(gergo.erdi.hu ↗)

2 points · by emillon · 11y ago · discuss

comment 11y ago · link · parent

This kind of compiler has already be done: http://gergo.erdi.hu/projects/metafun/

comment 11y ago · link · parent

Yes, it's not very formal and as others said it would need some definitions to make a useful result.

But actually I don't think that this duality is related to types: in a static language, the types of captured variables does not appear in a value's type. And for the object side, the type of instance variables is hidden behind the public interface too.

So it's really more about techniques for creating abstractions than how the values are composed together.

comment 11y ago · link · parent

I like to see this as a sort of duality: closures are objects that have a single method (call) and objects are made of functions that can only capture one variable (this).

26.

I am sorry, but this looks insane(blind.guru ↗)

2 points · by emillon · 11y ago · discuss

comment 11y ago · link · parent

Yes, exactly. ADTs are entirely known statically so there's no vtable etc.

comment 11y ago · link · parent

At runtime, GADTs are actually represented the same way as plain ADTs (that is, a tagged union). The tighter types make it possible to remove some unused branches in pattern matching, so you may remove a few tests, but memory-wise it should be the same.

comment 11y ago · link · parent

> OCaml classes allow row polymorphism, but disallow immutable updates (immutable updates meaning create a new object with everything the same, but one element different.)

There's a functional update construct for objects:

http://caml.inria.fr/pub/docs/manual-ocaml/objectexamples.ht...

It works like { r with field = value }.

comment 11y ago · link · parent

> Also, when your programs use abstract data types you lose the benefits of pattern matching.

In some cases you can also use "private ADTs". Modules seeing such a type can use pattern matching on them but can not apply the constructors.

12345
14