10,590 karma · joined Dec 4, 2013 (12y ago) · 4,855 submissions
comment 7y ago · link · parent
OS is Debian stretch: it's rock solid in my experience.
It was rebooted on average once a month (I switched country, there were black outs, I upgraded the OS, etc.) but there have been stretches where it was up for several months in a row, happily cranking!
comment 7y ago · link · parent
I basically used my everyday workstation. There were 79 trillions operations to be made and I'd save the intermediate result every 1 billion result (so approximately every 22 minutes I'd save a result).
The computation cannot be parallelized and the i7 I was using has four cores. So basically instead of turning it every night off I'd simply leave it running 24/7.
I'd simply backup the files with the intermediate results once in a while. I rebooted the computer about 50 times in 4 years and during those 4 years during about 3 and half years it was computing towards the solution.
But I coded (totally unrelated things), compiled things from source, browsed the web, did my email, etc. from the very workstation which computed the solution.
The computation is easy to relaunch from any intermediate step.
Thanks for the congrats!
comment 7y ago · link · parent
comment 7y ago · link · parent
EDIT: WIRED article just in. Haven't read it yet. Link if anyone is interested: https://www.wired.com/story/a-programmer-solved-a-20-year-ol...
EDIT2: forgot to tell but the mining pool Antpool posted a message in the block header / coinbase data of Bitcoin's block 573138 saying "Congrats Bernard Fabrot for solving LCS35!". My brother tried to time this with the press release which was supposed to come out on friday but then the press release got pushed back to today/monday. So yeah, coinbase data of block 573 138 is kinda very cool (it requires cooperation of a mining pool because it's not just in a transaction but in a block). TYVM to the everybody at Antpool! Big thanks for that : )
comment 12y ago · link · parent
The ligature of 'f' and 'i' is not "rare" and it is not "unwise" to use it. Actually many professionally typeset books are using it: it's not an "idea" as you wrote. It is something very real and often used.
It is so common and so good looking (I'd even say "so perfect") that you probably never noticed it but I can assure you that it's used in many of the books / newspapers / magazines you've read during your life.
I've written and typeset about a dozen book (one with LaTeX, all the others with QuarkXPress: it was before the InDesign days) and I can tell you that when I see a non-ligature "fi" I directly notice it because it is really poor looking.
Of course in addition to LaTeX, both QuarkXPress and Adobe's InDesign and several other professional typesetting software do the common ligatures.
comment 12y ago · link · parent
It's been a long time I haven't used it but back in the days I used it for years as part of the build chain and it was pretty flawless.
As I understand it nowadays it's even used for Android builds.
comment 12y ago · link · parent
I think it was a talk by Uncle Bob where he talked about how many devs there were worldwide when he started programming, how many there were in the early nineties and how many there are today.
The question "Where do old devs go to?" can still be asked (and Ed answered that question) but I think the answer doesn't matter much with regards to the average age of devs during interviews.
A company is going to be interviewing way more younger devs than older ones simply because of the age distribution of devs.
Even if every single (old) dev was still developing software, there would still be very few old devs compared to younger ones. That's why the graph in TFA is shaped like that.
I may be totally mistaken here but that's how I understood that part of the talk and I think it makes sense.
comment 12y ago · link · parent
Java was, for the computation I needed to do... Eight times slower than C! I know I was hitting a edge case for a very specific kind of computation but still. The situation is so bad that there are people who wrote wrappers calling GMP from within Java.
I think some Java devs don't realize how slow some of the Java API are for certain tasks. For example there's no way Java BigInteger can compete with GMP and there's no way GMP is getting ported to Java anytime soon (GMP is open source: just go and look at some of the optimization going on and you'll see what I'm talking about). Most Java devs don't realize how complex and optimized some libraries out there are and how low-level you need to go when you need the utmost performance.
Sure, server-side Java is fast for most things it's used for. But not everything is "server-side" and there are several domains where Java simply doesn't cut it compared to good old C + assembly.
And people finding Java being nearly one order of magnitude slower than the alternative for some tasks may be tempted to ask "Why is Java so slow...".
Now this isn't a criticism of Java: Java is the language I know best and used (and still use) the most. And I know it well enough to know when it's probably a good idea to try to find an alternative.
comment 12y ago · link · parent
"...we still need to run the program to observe that the computation fails somewhere and then figure out what happened"
As if figuring out where a problem happened was an issue in Haskell (or, really, in any language supporting something like the maybe monad).
If figuring out what happened when something failed is complicated because there were several maybe monads and in the end you got nothing, then Haskell solves this very nicely if I'm not mistaken: there's "Either", which can carry an error message along with the fact that there's no result.
Now I'm not disputing that a proof that something cannot happen would be great (and hence in this case not requiring Maybe / Either): all I'm saying is that people shouldn't misread that thinking that Haskell has no clean way of reporting why nothing got returned.
comment 12y ago · link · parent
Is the 'F' in FRP the same 'F' as when people say that, for example, Haskell and Clojure are FP languages?
Does FRP use the notion of "functions" which are closer to the mathematical definition of a function? For example does FRP try to avoid state and mutable data as much as possible and do the same inputs always lead to the same output? Or is it called "functional" simply because it allows to use things like map/reduce/filter?
If it is "really" functional, I take it it's quite deterministic: can you then take all these streams of events and "replay" them at will, always ending up in the same intermediary state and, eventually, in the same final "state"?
If that's the case, then it's the next thing on my "to learn" list :)
comment 12y ago · link · parent
They're using the Bitcoin blockchain to post the one-way hash proving that the document existed at a certain time. They wrote: "This is possibly the first non-currency application of the Bitcoin Blockchain packaged in a commercial way for non-technical users."
That's precisely what Bitcoin is solving: it's the first system allowing to have trust without a chain of trust, without a central authority. And this is why IMHO Bitcoin is huge.
In a way Bitcoin-the-cryptocurrency is "just" one application of that decentralized trust.
Now that said that technique is known since a long time: if I'm not mistaken people have been using SHA256 of documents as private (?) keys to make a tiny transfer in the Bitcoin blockchain since basically as long as Bitcoin existed.
It's good to see it as an easy-to-use service although apparently there are already free alternatives...
comment 12y ago · link · parent
The private sector is suffocating and closing SMEs left and right, leading to more and more unemployment.
So it is not working for France. Unemployment is as crazy high as their taxes are and the situation is overall very, very bad (it's a non-democratic party who won the recent european election in France).
I'm not saying I know which level of taxation is correct but once you start hammering people so much that they leave the country or that they simply decide to live of wellfare instead of trying to be entrepreneurs, then it's reasonably safe to ask the question as to whether or not you're too far right on the Laffer curve.
Now I'm not saying there aren't country which are socialists and which do better than France: what I'm saying it's that it's not as easy as "tax everything" (which is what you suggest: capital gain taxes, inheritance taxes, more income taxes, etc.).
On my own anecdoctical level: my brother left France to go work in Switzerland and I'm personally considering throwing the towel in and moving to a country which doesn't hate his entrepreneurs as much as the country I'm in...
comment 12y ago · link · parent
"There is a further proof that the binary code that executes on the hardware is a correct translation of the C code. This means that the compiler does not have to be trusted, and extends the functional correctness property to the binary."
(I wonder how that works but it is related to your compiler concern)
Now even though the issue of hardware (say rogue hardware with rigged number generators and whatever backdoors) is probably a real concern, I still think that seL4 and its codebase where hundreds of bugs have been automatically found (and manually squashed) is a big step forward.
comment 12y ago · link · parent
This seems especially weird seen most people here are using Git and many of the things we have wouldn't exist without these people.
If I'm not mistaken Rich Hickey took one or two years off, pulled the plug and went on to create Clojure.
Saying "But that's only one in ten million" ain't an argument: there are genius programmers out there and we're all using daily piece of code from these genius programmers.
Watching videos from Linus Torvalds (the talk about Git he gave at Google is amazing), Theo de Raadt (anything about security), Rich Hickey, Simon Peyton Jones, etc. is one of the thing I prefer to do.
I've also personally met several genius programmers: including one who had been working on at Adobe and who (while not at Adobe anymore) then single-handedly wrote a Java bytecode to Objective-C source code converter. I know for a fact that this converter allowed to write an app which reached top 3 in the appstore.
I've also competed ten years ago or so versus plain geniuses in the TopCoder algorithmic competition. Some of the best ranked coder there had incredible achievements, like for one of them having won the mathematics olympiad several times.
That's the thing: even "one in ten million" means that there are quite a few genius programmers out there among us. And we owe a lot to them: not only have we many great tools and projects which would never have existed without them, but they also let us get a glimpse inside their beautiful minds through the messages / blog they post and through the video they make.
Why downvote?
comment 12y ago · link · parent
I found the story back and things are, IMHO, actually quite interesting... If only because the attempt was made after someone ill-intentioned gained access to Linux's CVS repository.
Back then Linux was still using BitKeeper (decentralized) for Linus hadn't created Git yet (so I was not remembering things correctly here). But apparently some people didn't like BitKeeper so there was a CVS clone of the BitKeeper version. And it's in the CVS repo that the attempt took place (after someone hacked his way into the server hosting the CVS repo).
Here's the story:
https://freedom-to-tinker.com/blog/felten/the-linux-backdoor...
Now even though Linus didn't choose SHA-1 for its cryptographic properties and even if SHA-1 is not SHA-256 nor SHA-3, it still looks like an attacker gaining access to a CVS repo would have a much easier time inserting a backdoor than an attacker gaining access to DVCS using cryptographic hashes (which user KMag here explained nicely).
comment 12y ago · link · parent
While I really enjoy Theo's talks and writings, I wonder if the fact that the VCS is CVS ain't a security issue in itself?
It's been really a long time I haven't used CVS but I remember that attempt to introduce backdoors in projects using Git as a (D)VCS have been caught (it was in the Linux kernel I think). IIRC some attempts were caught precisely because it's hard to fake SHA hashes and so people can't really "mess" with the history of a DVCS like Git: too many people noticed a critical file having no business being modified being, well... Modified.
Once again, it was quite a while ago but I'm pretty certain that both the fact that Git was decentralized and that Git was using cryptographically secure hashes was touted as a "Good Thing" [TM] that helped catch the backdooring attempts.
Ain't using CVS potentially an issue here?
comment 12y ago · link · parent
http://www.youtube.com/watch?v=fwcl17Q0bpk
He's talking specifically about OpenSSL quite a lot (basically saying it's too complex to ever be secure and probably received many "security patches" from NSA employees).
The entire talk is an eye opener. He explains how NSA shills are reading reddit / HN and poisoning communities / standards / protocols / etc. How everything is made, on purpose, needlessly complex to prevent honest developers from working on important things.
He talks about shills submitting a few correct patches over the months / years, slowly gaining reputation among the community and then misusing that trust to submit (not so) subtle patches introducing security holes on purpose.
He mentions a few of the "common mantra" repeated often (including here) by people who have an interest in the status quo.
He explains why SSL/TLS is broken and says that the "SEC" part of "DNSSEC" is not going to be that secure ; )
I think that the problem is much worse than most people think and that Poul-Henning Kamp is closer to the truth than the ones constantly repeating "bug happens" as if nothing malicious was ever going on.
comment 12y ago · link · parent
There are a few gotchas, including if I understand it correctly the need to "retry twice" when you try to SSH in your server when a DDoS is going on but...
OVH doesn't even feel a 85 Gbps attack (let alone a 20 Gbps one like in the article). They can deal with attack much larger than that automatically.
They seem to have very good DDoS protection against the "flood" type of DDoS. And this is pretty much transparent to users.
I hope more and more hosting company start implementing similar anti-DDoS features: more competition would bring better protection against flood-type DDoS and cheaper price.
Here's the explanation as to how their system works (in french but there are several graphics):
http://www.ovh.com/fr/a1164.protection-anti-ddos-service-sta...
Basically as soon as a DDoS trying to saturate your server(s) is detected the attacker faces the problem of needing to DDoS... OVH itself.
And the DDoS doesn't even make it to your server while the legitimate trafic still does.
I find it great that there are people actually looking for solutions to the DDoS issue.
comment 12y ago · link · parent
This kind of uglyness due to the lack of ligature if not as noticeable on digital media, where we typically don't have the 1200+ dpi that print does and where, hence, you tend not to have these kind of 'f' (for example) because fonts have been hinted (or specifically chosen / created) not too have these issues.
I hope my explanation makes sense: I'm not a native english speaker but I did write and typeset myself about a dozen books (most with Quark XPress, one with LaTeX)... And they were all using ligatures IIRC (I should check for my LaTeX one: it's been a long time).
comment 12y ago · link · parent
It wasn't even mandatory to restart the system: the trick was to use first MagicSysRQ and then issue a "vgareset" (IIRC I couldn't even see what I was typing, but the command was taken into account) and then, miracle: I could unlock frozen X Window sessions (more specifically: kill X, "reset" the GPU and then restart a new X Window session).
Note that very often X is fine: it's just X which is frozen. Heck, if you have another machine on your LAN and allow SSH in, you can SSH and kill X / vgareset without needing MagicSysRQ.
But since quite a few years X is so stable that such hackery ain't needed anymore. Moreover if I recall correctly "vgareset" did only exist for 32 bits system (at least at one point). Nowadays my Linux workstation regularly reaches 6 months of uptime (there are only very rarely know remote root exploits mandating a kernel upgrade) so I've kinda "forgot" how MagicSysRQ works ^ ^
comment 12y ago · link · parent
I've got two Kimsufi dedicated servers at OVH since years and years and, to me, it's an amazing service (at a price which apparently nobody can beat).
One of my Kimsufi on which I installed Debian reached an uptime of four years. Four years of uptime. The smallest of the Kimsufi, which is already the cheaper of the dedicated servers OVH provides. Four years.
A pretty stock Debian, with only SSH and Tomcat and not a single (known) root exploit forcing me to install a patch that would have required me to reboot the box. Meanwhile I had two very serious DoS Java bugs requiring me to patch the JVM / JRE (IIRC the Tomcat version I had could do with just the JRE, no need for the JDK). One Java exploit was the infinite floating-point parsing bug and the other the hashmap not being O(1) anymore (the attack consisted in submitting very long URL with carefully query paramaters).
Now the real funny thing: one day I got an email from OVH saying my server was down and that it "would not reboot". What happened is that the motherboard died and they moved my stuff to a new system. But the Debian version on my Kimsufi was so old that it wouldn't recognize the new motherboard...
That's basically how stable Kimsufi are: they can happily crank up for years and years and years and years.
Now I'll have to look into it: because I pay 20 EUR / month for mine (VAT not included) and apparently the new ones at 17 EUR / month are already more powerful than the ones I have, so I may want to switch to a beefier machine for a cheaper price.
Also note that during summer time (month of august IIRC), they launched a Kimsufi at 2.99 or 3.99 EUR / month (don't remember, but several people here point the number of 2.99). But it got so successful that they had issue and were forced to remove the offer. And "Octave" tweeted that OVH would come up with an entirely new offer. I'm glad to see they're now offering Kimsufi at 8 EUR / month.
That's 8 EUR for your own dedicated server. Seems quite a good deal to me.
comment 12y ago · link · parent
You could hear the HDD "wanting" to start but failing. I searched the net like crazy because I really needed the data kinda badly: I even considered trying to find an identical, used (but working), HDD and swapping the controller.
Eventually I found a message (somewhere on Usenet I think) saying that some failing drive may start when cold enough... So I did put the HDD in the fridge. After the 2nd try I managed to boot it and to copy all my data and it's the last time that that drive booted!
So, as crazy as it sounds, the fridge/refrigerator trick was working in some cases... And I take it that the grill/heat thinggy may work in some cases too :)
comment 12y ago · link · parent
I thought that Bitcoin's major technical feat was precisely that it showed that you could solve the Byzantine Generals' problem (which is a generalization of the Two Generals' problem).
So which is it? Impossible result or not? Or does the article talk about something else (but then a mention of Bitcoin, what Bitcoin solves and why it doesn't apply to what's described in the blog entry would have helped)? I'm confused now...
As a sidenote I'd say that writing about either the two generals' or the Byzantine Generals' problem in 2013 without mentioning Bitcoin even once is a bit weird.
comment 12y ago · link · parent
Nope, it's definitely not. If projects like Tor and Mozilla (they're working on it) can do it, then the 99.99% of packages out there which are less complicated than Tor / Mozilla can do it too.
> It can still be rife with security holes.
You're just rewriting what I wrote: I didn't said it would mean the software would be secure. I wrote it would already be a huge step forward.
> "I don't know what you mean by 'functional package managers'."
I mean for example this:
nixos.org
> Root-installed software is as big a deal to a single user system as a vuln in your copy of Adobe Flash.
Definitely not. Especially in a system like Linux where it's easy to have multiple user accounts (including one used just for surfing). I'm a "single user" and I do have several user accounts on a single machine (including a user account which I use only for surfing the Web). No Adobe Flash here btw and no Java applets either (I'm a dev and I do typically target the JVM, but there's no way I'm allowing Java applets in a browser) ^ ^
You say: "deterministic builds cannot be done", "there's no point in having deterministic builds because there could still be security holes", "local exploit is as bad as root exploit on a single-user machine"...
And I disagree with all that. And thankfully there are people disagreeing with you too and working on tomorrow's software packaging/delivery methods.
I thank Tor, for example, for showing us the way. The mindset really need to change from: "it cannot be done, it's too complicated" to "we can do it, let's follow the lead of the software projects showing the way". There's a very real benefit for users.
The "why":
https://blog.torproject.org/blog/deterministic-builds-part-o...
The "how":
https://blog.torproject.org/blog/deterministic-builds-part-t...
Honestly I simply cannot understand why there are still people arguing that deterministic builds aren't a good thing or people arguing that it cannot be done.
It can be done. And it's a good thing.
comment 12y ago · link · parent
One of them being that you typically must be root to install packages. This mean that if anyone manages to slip a backdoor in any moderately used package, it probably means "root" on many Linux systems.
Some people have been complaining about that for years. Thankfully we're now beginning to see things like "functional package managers", where packages can not only be installed without admin rights but can also be "reverted" back to exactly the same "pre-package-installation" state if wanted.
The other very serious issue is that most package builds are not deterministic. I think everybody should begin to take security very seriously into account and realize that deterministic are the first (and certainly not only) step to take towards software which can be trusted a bit more.
There are thankfully quite some people who are now taking the deterministic builds route and one day we should, at last, be able to create the exact same package on different architectures and cross-check that we've got the same results. This won't help with backdoors already present in the source code but it's already going to be a huge step forward.
So, yup, I take it that, of course, as a packager you know how to pwn all your users.
As a user I wish we had a) deterministic builds, b) functional package managers, c) packages which can be installed without being root.
If we had that, there would be less ways to pwn all the users of one package at once. I'm a Debian user since forever (and I love the rock-stable Debian distro) and I'm not expecting Debian and other big distros to move to such a scheme anytime soon (it's probably too complicated) but there may be a real opportunity here for newer distros who'd want to focus on security.