HNHacker News
TopNewBestAskShowJobs

bru

1,185 karma · joined October 3, 2011

QRT Google CentraleSupélec

http://www.linkedin.com/pub/bruno-cauet/2b/963/415

https://github.com/brunal

submissionscomments
bru··on How to support both Python 2 and 3
I seriously hope you're trolling. Yes, the transition is harsh, but it's getting better. On your points

1) that's a problem with Archlinux then, not Python. It was dumb to set 3 as default that sound

2) `3to2` works pretty nice for porting code

3) So you have to put parenthesis because it's now a real function. That's so bad. Also you can do stuff like `map(print, myiterable)` which you could not before, what a pain!

bru··on Brand new Scala-lang.org
> The page loads quite slowly on my macbook air

The 3771 DOM elements composing the front page may be the cause.

bru··on More Git and GitHub Secrets
Fixed indentation:

    git merge master -s <strategy> 

    git merge master -s recursive -Xpatience 

    git merge master -s octopus 

    git merge master -s ours 

    git diff stash{0} 

    git --no-pager diff 

    git stripspace < file 

    git diff --check 

    git diff --cached 

    git merge --abort 

    git merge -m "message" 

    git merge --no-commit 

    git status --ignored 

    git update-index --assume-unchanged path_to_file 

    git update-index --no-assume-unchanged path_to_file
bru··on Verbal abuse on LKML
I fail to see how she turned it into a gender issue with those words. She's a woman and she's entitled to the use of the correct pronoun. Do you wish she had written "I won't be the nice guy anymore"? That would have sounded ridiculous.

Please note that when she points out Linus' behaviour, it is not because she got flamed. She did not get yelled at. The whole issue has nothing to do with her sex.

You are trying to turn it into a gender issue, which it is not - regardless of Sarah's stances on that matter.

bru··on When male CEOs have daughters, relative pay for women at their firms goes up
I think that you have a very good point. The article should have been something like "Child Effect: When male CEO wife has a child, relative pay for women goes up".

More of a "My wife gave birth and that helped me gain respect/comprehension towards women" than a "I have a daughter and I'm realizing she'll grow up in biased world, time to fix that beside me".

Not that it is a better or worse conclusion, but quite different IMO.

bru··on Estonian E-Voting Source Code Made Public
You're right. CC licenses are not for software and are incompatible with the GPL. Read more at http://wiki.creativecommons.org/Frequently_Asked_Questions#C...
bru··on The vision behind Opera 15 and beyond
>Notes were still synced with Opera link so there never was any privacy

I prefer giving my data to a Norwegian company rather than an American one, especially in the light of the recent events.

Moreover, Opera has a clean track record of the matter of privacy, while they were times when they could have abused their power: a substantial part of mobile traffic[1] was going through their servers due to Opera Turbo technology, and AFAIK they did not try to exploit it.

1: They still owned more than 20% of the market in 2011. I do not know which part of the users were using Turbo regularly, but I believe they were a lot in the pre-smartphone times.

bru··on Zynga Mistake Puts Random Stranger In Customer Support Role
Excuse me? It is stated that he did the right thing first:

> When Zynga didn't reply to his messages pointing out the error, he started doing their job for them.

He then decided to play along, and that it his right. He did not say "delete system32" or such things. The asshole here is Zynga more than Eric I'd say.

bru··on Python Tools for Visual Studio
>[...] you're a hardcore PhD who wants mixed-language Python and C++ debugging [1] [...]

It is mentioned.

1: http://www.youtube.com/watch?v=wvJaKQ94lBY&feature=c4-overvi...

bru··on Poll: What is your primary programming language?
Kind of the same problem here. At work everyone splits their time between several projects, and my work is distributed as:

- 45% python (1 project)

- 45% C# (1 project)

- 5% R

- 5% JS (1 very small project - data visualization using dc.js)

bru··on Lua.vm.js
>Score: 130

>binarytrees 46.051 seconds

Without any frame of reference, those values are meaningless.

However there is one I can evaluate:

>1.58 MFLOPS

Given I have an i7-2600 and its flops on benchmarks[1] (FPU Flops score: 8500.09 MFlops), that tells me something I could have guessed: performance is 3 orders of magnitude worse than native high performing code.

Still, in order for this comparison to be complete, I'll have to

- try this benchmark in Firefox with OdinMonkey, the new and very promising JS engine[2]

- run a similar benchmark with "native" LUA

edit: results obtained on W7 SP1 with 16GO RAM and Chrome 27.

1: http://www.maxxpi.net/results/show.php?ID=c3x2c5w6d7b7

2: did you know the logo was awesome? https://wiki.mozilla.org/File:Odinmonkey800.jpg

bru··on DuckDuckGo Sees Record Traffic After NSA PRISM Scandal
When you look at the timeline[1], the first event is "DontTrack.us", a website[2] dedicated to pointing out google tracking, and linking to DDG in the end.

So privacy has always been their focus. It is a nice advertising point, but pushed from the beginning.

1: https://duckduckgo.com/traffic.html

2: http://donttrack.us/

bru··on Priced out of Paris
According to Wikipedia[1], Paris is the 34th densest city in the world. 5 French cities are denser, and all of them are Paris' suburbs. Only 3 non-French European cities are denser than Paris.

Your comment lacks foundations.

1: http://en.wikipedia.org/wiki/List_of_cities_proper_by_popula...

bru··on Javapocalypse
>What attracts people to the Java world?

Portability, security (automatic memory, static typing, etc.): you cannot bore a hole in your feet when shoving a nail. And backed by a huge company. Relatively fast. More reasons there: http://c2.com/cgi/wiki?WhyJavaIsGreat

>exception-related problems

A common hack it to wrap your code in a dumb try/catch block at the uppermost level. That way there is no scope-related problem and the compiler won't complain. Ofc that should only been done in a situation such as yours, not in "real life" (i.e. "entreprise world" for java).

bru··on Make DuckDuckGo your Chrome default search engine
Side note: working URL for unhosted is https://unhosted.org/
bru··on Changes in rankings of smartphone search results
Finally. Websites in the tech sphere are usually mobile friendly (because they live on the edge of modernity or because they are bare bones and content-centric), but "common" websites often offer a poor mobile experience. Google penalising this is good news for the consumer.

However one point that is not addressed in the article: what about websites that make you go through a first page/pop-up which proposes you to download their app every time[1]? That is an annoying behaviour that I'd like to see penalised as well.

And as usual there is a relevant XKCD comic: http://xkcd.com/869/

[1] here, in France, most newspapers websites do this. Main result is that I do not read news on my phone any more - not a big loss actually.

bru··on Redis-V8
Hi, just nipticking: you wrote

> Google Chrome, the open source browser from Google.

Google Chrome is proprietary software. Chromium is open source.

bru··on Are Current Web Design Trends Pushing Us Back to 1999? (2011)
Good point on the modal popup windows! That could be a whole part of the article.

alert() was, after all, a standard way to notify the user about something (overused, yes). Then we switched to pop-in alerts. Accessibility-wise, I think it is a big loss. The appearance is no more standard, focus management and navigability suck, its semantics are lost, and you cannot block it any more ("prevent this page from opening more pop-ups").

Most of the time the content of a pop-in will be as irrelevant as the past pop-up's, but with full HTML available: welcome colours, pictures and videos!

bru··on Fish shell 2.0
/sbin and /usr/sbin, as well as some folders in /opt (e.g. for Android development).
bru··on Fish shell 2.0
I recently tried setting fish as my default default and I encountered some trouble, for example my $PATH was incomplete (there was only /bin, /usr/bin and /usr/local/bin left in it if I recall correctly).

I reverted it back to bash and I get fish as my shell by spawning "urxvt -e fish" instead of "urxvt" (in my window manager configuration). This works well.

bru··on Travelling Salesman – Official Movie Site
> the IMDb rating (4.8)

Well actually it reads

> Ratings: 4,8/10 from 53 users

so I do not think the population is big enough to be relevant.

bru··on Mozilla Launches Firefox OS Simulator 3.0
Did you even look up your question on a search engine before asking it?

The dedicated Wikipedia page has all the information you are looking for: http://en.wikipedia.org/wiki/Firefox_OS (spoiler: no it is not)

bru··on PHP Commandments
>Where would something like this fit, if not a general helpers.php type file?

In debugging.php alongside with other debugging helpers?

bru··on Why SICP Matters
Hi,

>CAML Light does not exist anymore

French classes prépa[1] have been using it in the CS course until this year (I have heard it would be dropped in favour of Python next September). So even though there hasn't been any development for the past 10 years[2] it still exists! And then there is OCaml which is still lively.

Even though a CS graduate may say that S-expressions are the simplest syntax possible - not that he's wrong - I'm happy I discovered functional programming through OCaml, whose syntax feels way more natural (to me at least).

1: http://en.wikipedia.org/wiki/Classe_pr%C3%A9paratoire_aux_gr...

2: at least according to http://caml.inria.fr/caml-light/release.fr.html

bru··on We've Open-sourced Rendr
Fourth link on the page links to http://nerds.airbnb.com/github.com/airbnb/rendr-app-template (which obviously does not work) instead of http://github.com/airbnb/rendr-app-template
bru··on Pony ORM - Use Pure Python to Speak to Your Data
>Free for non-commercial usage: Creative Commons Attribution-NonCommercial 3.0 License

Beware! CC licenses are not for software, and it actually makes it incompatible with GPL. Alexander and Alexey, please see http://wiki.creativecommons.org/Frequently_Asked_Questions#C...

bru··on No Company For Old Programmers
Because it is how it works in many countries?
bru··on Obfuscated C Code Contest 2006. Please explain sykes2.c
Hello Emil,

I believe there is a mistake in this snippet of code: `--` triggers a syntax error. Shouldn't it be

    main(O){10<putchar(4^--O?77-(15&5128>>4*O):10)&&main(2+O);}
My obfuscated C experience being quite limited, could you tell me how you determined all those magic values in order to print the right string?

Thank you

bru··on Excel as a database
Hello smortaz,

Your post reminded me DataNitro[1] (previously IronSpread), a python-in-excel solution that was featured on HN nearly a year ago[2], and a YCombinator-backed company.

As far as I'm aware it seems closed-source and costly, while your solution is open-source and free. But how does it compare functionality-wise?

At my company we're using using Excel pretty often and python is growing, so using such a tool could be a really convenient.

1: https://datanitro.com/

2: https://news.ycombinator.com/item?id=4090337

bru··on Go Hard Early
I think you're right, but I 100% reject this article. Maybe it is good advice for small- or middle-scale products, apps., etc., but it will never hold for a project whose goal is to make a global impact.

I'm actually thinking about Fabrice Bellard, who was featured in a article that was met with success here two months ago[1].

> Bellard made it seem natural to pull together his mathematical insight, broad experience at instruction-level coding, and careful engineering to advance the field this way

When you look at his achievements[2], I have trouble finding one that would have succeeded with OP's "advice". Between an app for coffee-lovers and QEMU, I think the careful thinking and engineering crushes the hype of "let's do it". Sure it sounds good, but that is not the way you will achieve something meaningful.

I may sound like an ass while it is not my goal, but

- I'm kind of surprised to see the success of this article (50 votes for 2 hours) given the low level and amount of content it offers

- I distrust analogies, and this gamma-correction one is definitely unsound (not to say dumb)

1: https://news.ycombinator.com/item?id=5187585

2: http://bellard.org/

← PreviousPage 5 of 6Next →