Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Doctor Who To Teach Kids To Code

geantvert Re:In time (139 comments)

But seriously: Friends do not let friends write fortran.

I do not really agree with that. Fortran 90 and above is a nice language. The problem is people still using old and obsolete F77 features.

Of course, I would not recommand using Fortran 90 for anything else than numerical codes. If you have to manipulate multi-dimensionnal arrays, Fortran is the right language. This is where C/C++ clearly sucks.

yesterday
top

Doctor Who To Teach Kids To Code

geantvert Re:In time (139 comments)

on Debian/Ubuntu that is pdflatex

yesterday
top

Doctor Who To Teach Kids To Code

geantvert Science! (139 comments)

Use Dr Who to teach science ... yeahhhh... what could go wrong?

yesterday
top

Doctor Who To Teach Kids To Code

geantvert Re:In time (139 comments)

And this one
* "You don't have to write your Fortan codes in UPPERCASE ONLY"

yesterday
top

GNU Emacs 24.4 Released Today

geantvert Re:Start rant here (149 comments)

Anarcobra description of what is happening is probably quite accurate (at least for some styles) but the problem is that he tries to give a complex interpretation to a simple behavior: What is actually happening in emacs is that everything is indented using spaces (of various numbers depending of the choosen style and context) and every sequence of 8 spaces (as controled by tab-width) is replaced by a TAB (unless indent-tabs-mode is nil).

If you wrongly believe that the indentation algorithm has rules to select spaces and tabs according to the current context then the behavior is likely to appear very strange. Most of the other editor I know also work using a similar approach except that their default tab width is smaller and their default indentation levels are choosen to match the tab width which gives the impression that everything is indented using TABs. Simply speaking, Emacs with a tab width of 2 or 4 will do exactly the same.

   

yesterday
top

GNU Emacs 24.4 Released Today

geantvert Re:Start rant here (149 comments)

Emacs also allows you to add local configuration variable inside each file to customize its behavior.So if you do not want to change tab-width globally, just add the following to each C/C++ file indented using a tab-width of 4:

/* Local Variables: */ /* tab-width: 4 */ /* End: */

This works for almost all major modes using their respective comments

PS: Slashdot insists for removing newline from the code above. More exemples are in https://www.gnu.org/software/e...

yesterday
top

GNU Emacs 24.4 Released Today

geantvert Re:Start rant here (149 comments)

It seems to me that using TAB to indent is always a bad idea except in language where they are strictly needed.

There are actually 2 ways to indent using TAB:
    (1) by giving each TAB a fixed width
    (2) by jumping to the next alignment column (as in libreoffice, word)

The second method makes sense for regular text using proportionnal fonts but not for code.

The first method is the most common and the reason why codes idented that way often look bad in emacs is because it interprets TAB as 8 spaces instead of 4 or 6. This can easily be fixed by setting the variable tab-width to the proper value

Unless you really care saving a few bytes per line of codes, I recommend disabling TAB globally in emacs with
(setq-default indent-tabs-mode nil)

yesterday
top

Where Intel Processors Fail At Math (Again)

geantvert Re:example from TFA. try it (238 comments)

1.5707963267948966193 is rounded as 0x1.921FB54442D18p+0
Look what would happens with different roundings:

tan(0x1.921FB54442D17p+0) = + 0x1.9153D9443ED0Bp+51
tan(0x1.921FB54442D18p+0) = + 0x1.D02967C31CDB5p+53
tan(0x1.921FB54442D19p+0) = - 0x1.617A15494767Ap+52

Simply speaking, computing the TAN of 1.5707963267948966193 in double precision does not make sense.
That's a typical floating point precision.

Now, if you really want to discuss the precision of TAN, you should use 0x1.921FB54442D18p+0 or any other value with an exact double precision representation.
But even then, it does not really make sense to discuss the precision near special values such as PI/2 because the precision of your input data will be unrealiable around that number.

about two weeks ago
top

Adobe Spies On Users' eBook Libraries

geantvert I just hope that they ... (150 comments)

... found my favorite e-book: "'Alice In Wonderlands) ; DROP TABLE Books ; --.epub"

about two weeks ago
top

David Cameron Says Brits Should Be Taught Imperial Measures

geantvert Cameron is a 1/2 feet ... (942 comments)

... also known as a dick.
This unit measure, like inches and feet, comes from a body part of a ancien dead king.

about three weeks ago
top

Remote Exploit Vulnerability Found In Bash

geantvert Re:Only CGI scripts affected? (399 comments)

On my ubuntu laptop, gunzip and zcat are Bash script.

about a month ago
top

Remote Exploit Vulnerability Found In Bash

geantvert Re:Only CGI scripts affected? (399 comments)

Any setuid program that would call a bash script directly or indirectly could also be vulnerable.

I predict that in the following days hackers will find several ways to cause local privileges escalations by executing system bash scripts with customized environment variables. That could be as simple as configuring a hidden WiFi network with a customized ESSID.

 

about a month ago
top

US Scientists Predict Long Battle Against Ebola

geantvert Re:+-2000 deaths? (119 comments)

The doubling time looks like 30 to me (1000 at 110 and 2000 at 140)
According to the given formula e^(0.022x+4.591) it is actually log(2)/0.022 = 31.5
e^(0.022*0+4.591) = 98
e^(0.022*31.5+4.591) = 197
e^(0.022*63+4.591) = 394
e^(0.022*94.5+4.591) = 788 ...

about a month ago
top

US Scientists Predict Long Battle Against Ebola

geantvert Re:+-2000 deaths? (119 comments)

There is no such thing as nuclear cauterization except in movies and video games.
A nuclear attack in a densely populated area would just destroy the medical infrastruture and would create thousands or millions of survivors most of them affected by radiations and so with a weakened immune system. The pandemic would spread very fast.

about a month ago
top

Apparent Meteorite Hits Managua, Nicaragua, Leaving Crater But No Injuries

geantvert The real question is... (107 comments)

... are Adam Savage and Jamie Hyneman in holiday in Nicaragua?

about a month and a half ago
top

No Black Hole Or Magnetic Monopole: Tunguska Really Was a Meteor

geantvert Discussion is over (128 comments)

Godwin! I saw it first! What did I win?

about a year ago
top

Open Sauce Foundation Created

geantvert Rnfl (95 comments)

Yvahk/Havk hfref pna hfr gur sbyybjvat pbzznaq gb qrpbqr/rapbqr ebg13
ge n-mN-M a-mn-zA-MN-Z

about a year and a half ago
top

Schmidt Testifies Android Did Not Use Sun's IP

geantvert Re:"Clean Room" implementation (239 comments)

Humm... If the purpose of that function is to check that the interval fromIndex:toIndex is valid within an array on length arrayLen then there is another sensible way to implement that function.... without a bug:

    This code does not throw ArrayIndexOutOfBoundsException if toIndex == arrayLen

more than 2 years ago
top

Saving Gas Via Underpowered Death Traps

geantvert Please remind me ... (585 comments)

... what is the estimated number of deaths caused by pollution in the USA alone? and worldwide?

   

more than 3 years ago

Submissions

geantvert hasn't submitted any stories.

Journals

geantvert has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?