Become a fan of Slashdot on Facebook


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).


Comment: Re:Best short programs (Score 1) 204

by aralin (#48921881) Attached to: Computer Chess Created In 487 Bytes, Breaks 32-Year-Old Record

If you think in terms of as much stuff done in as little characters as possible, there is no competition for PERL.

I think this particular competition though is counting bytes of machine code. I thought I was pretty good myself with reducing a printer driver into 136 bytes, but Chess in 500 that is really something.

Comment: Re:Perl, my favorite language is rated higher... (Score 1) 386

by aralin (#48866917) Attached to: Is D an Underrated Programming Language?

Readability always depends on the programmer. Indentation does not give you readability by itself. You need modularity, comments, compactness, good symbol selection, etc. There is so much more to readability. Maybe you just saw a python written by very good programmers, but I saw python scripts written by mediocre programmers and they are not any more or less readable than any other program in any other language that I run through indent.

Comment: Re:Perl, my favorite language is rated higher... (Score 1) 386

by aralin (#48862543) Attached to: Is D an Underrated Programming Language?

A lot of sysadmins, devops and product integration people using perl for quick filters so they don't have to learn awk or sed with:

cmd | perl -e 'stmt;stmt;stmt;stmt;stmt' | cmd

You cannot do the same thing in python easily and that is an issue as you mentioned. Another issue is that the whitespace is creating havoc in bigger team and multi-platform projects where people work with many different environments and editors and small whitespace changes are sometimes not so easy to catch and can have code changing impact.

PERL has the write hundred ways quality, but in enterprise you can agree on standard way to write and then a larger team can be more productive in PERL than Python. PERL is also so much better at language embedding if you need to implement core routines in C.

On the other hand Python excels in the new to scripting, small (5) cohesive team market. They got that pretty much cornered now.

Comment: Re:Perl, my favorite language is rated higher... (Score 1) 386

by aralin (#48860509) Attached to: Is D an Underrated Programming Language?

PERL has a staying power. Other scripting languages come and go in popularity. Ruby for example. But eventually the large base of PERL programmers turns out new generation of PERL programmers by mentoring and language selection from being in position of senior / principal engineers and architects. Python is still surprisingly staying up there, being propped by Google and few other corps., but if not for Google, Python would go the way of Ruby. There is a slight chance that Python will manage to stay long enough to build a large base of libraries and examples, so that it will stay and maybe even replace PERL eventually, who knows. But you gotta understand that every 10 years or so, all the old languages get a push from the above mentioned change of guard in the development positions.

Comment: Re:Glass was doomed from the start (Score 1) 141

by aralin (#48824377) Attached to: Google Glass Is Dead, Long Live Google Glass

... and that is why I go with Apple products. At least I know that Apple goes 100% behind the devices they release and they will be around in 5 years and supported. Otherwise you end up with Zune or Google Glass or some other of the plethora of wanna be products from wanna be device companies.

Comment: Re:Can we stop worshipping Swartz already? (Score 1) 189

by aralin (#48765289) Attached to: White House Responds To Petition To Fire Aaron Swartz's Prosecutor

95% of cases are handled like this. Prosecutor will charge everything under the moon to scare the victim into accepting a plea. It does not matter, what is the size of the sentence, your life is ruined forever. So they don't care how much they actually give you first time, just that you do some jail time and have a record. That's the goal. Tough on crime, so many evil people behind bars. Need to start the governor campaign early on.

Comment: Re:Pierce, Buchanan, and now Obama (Score 1) 189

by aralin (#48765213) Attached to: White House Responds To Petition To Fire Aaron Swartz's Prosecutor

Look, the constitution guarantees you right to petition government for redress of grievances. There is no guarantee for the government to address those grievances. They made a website, you can petition them, so the constitution is served. Move on citizen. If you like your congress representative, you can keep your congress representative. If you don't like your congress representative, tough luck, you are stuck with him anyway. Demagogracy 101.

Comment: Re:As Russian (Score 5, Interesting) 265

by aralin (#48664385) Attached to: Serious Economic Crisis Looms In Russia, China May Help

This guy is not Russian. First of all, he is using the propaganda points that US is spreading in Russia, the fear that China will take part of their territory. It is one of the talking points. Second, he is making homophone mistakes (doubt -> dough) that only native speakers make or sometimes people who use english for 10-20 years or so and he is not making any of the grammar and preposition mistakes common for foreign speakers. It is sad to see our discussion here on slashdot tainted by spooks.

Comment: Re:Very relevent for small target embedded stuff. (Score 4, Informative) 641

by aralin (#48553991) Attached to: How Relevant is C in 2014?

The thing is, if you use structures with bit fields, C will not optimize the manipulations with them correctly. So you end up doing a lot of hand-holding in driver development in C. You have to be very much aware of the code being produced. It is not uncommon that you check specific inner loop sections to see exactly how they are being compiled and then based on the result and number of instructions might need to rewrite the C part or even just insert the assembly code directly.

fortune: cpu time/usefulness ratio too high -- core dumped.