Re:Review Ruby for the perl enthusiast please
on
Ruby 2.0.0 Released
·
· Score: 1
Yeah, sounds like the project is a rewrite.
As for syntax changes, I think that 1.8 is forward compatible to 1.9 (though strings became UTF compliant?), so maybe some edges in there. Last time I tried my 1.9 app in 2.0.alpha/beta/whatever, it just worked. In general the language has been very forward compatible and the revs have only happened every few years. Rails has a history of slapping developers around for major releases, but for the progress they're making and with the historical support, I don't mind at all.
Re:Review Ruby for the perl enthusiast please
on
Ruby 2.0.0 Released
·
· Score: 1
I'm sorry you got handed a poorly written project.
If you do a lot of number crunching, you might want to check out JRuby. Porting is often trivial, and number crunching (or adding pure java functionality) may speed things up a lot.
But the first thing I'd do is write a bunch of unit (and integration) tests so that you know where you stand.
Good luck!
Re:Review Ruby for the perl enthusiast please
on
Ruby 2.0.0 Released
·
· Score: 4, Informative
(sorry if this is double-posted - slashdot is choking)
Perl is way faster. Like twice as fast. Check out my test: % time (echo | ruby) ( echo | ruby; ) 0.01s user 0.00s system 91% cpu 0.016 total % time (echo | perl) ( echo | perl; ) 0.00s user 0.00s system 84% cpu 0.007 total
Though this is ruby 1.9.3. I don't think 2.0 is twice as fast as 1.9.3.
But I've looked at ruby syntax a bit and it looks like it might have the advantage perl has for quick ad hoc text parsing but an overall cleaner syntax.
What I don't care a lot about is fancy pants modules like rails. If I want to do something serious there's python.
If you're happy shredding text with perl, I see no reason to change. If you're happy doing serious work with python, I see no reason to change.
Ruby is a, dynamic, duck-type OO language with closures, exceptions, and a debugger. It has nice library infrastructure: http://rubygems.org/ It is generally a little less popular than Python and Perl, depending on your yardstick: http://www.langpop.com/
There are a few implementations of ruby, including one in java (with great bridging to java classes), one for iOS (with great bridging to iOS libraries), and one based on.net (with great bindings there). So if you have a particular target platform, one of those may interest you.
You might be interested in JRuby and Jython and their ability to communicate...
I code in Ruby for a living (Rails), and I think it's a really fun language. Which is something a fair number of rubyists say, and which is something you don't hear a lot of other folks say about their language of choice. For what that's worth...
I wonder why using an umbrella hasn't become a political statement in countries where drone strikes are a concern. A couple of 10's of thousands of black umbrellas with a picture of a fist, middle finger raised, printed on the top so they're all identical. Just leave 'em at the doors to be picked up by the next person leaving.
Let me see if I've got this right - you want a Linux-based blackbox that does exactly what you want it to do, but you're not willing to make it yourself, based on your perception that someone else should have already done the work for you?
Yeah. I can't be the first person to think this is a good idea...
Methinks maybe you should just stick to Windows boxes.
I don't have one of those. Do you think it'd help?
Yeah - I don't happen to have one of those routers. Which is why I'd love to see a disk image.
You could also consider rolling your own solution, if you have a particular program or suite of apps in mind; basically, just install the distro of your choice, install and configure your apps, then add them to cron.
Right. But this seems like such an obvious and common problem - everyone has a router and many many geeks have a server box of some kind - that it seems like there should already be a pretty full-blown solution without my having to roll one.
Isn't there FreeBSD or Linux disk image that'll solve this? <WIFI> <=> [Router] < routes only to > [IP address of solution] Where the solution does something like the standard coffeeshop login + * Special account gets unlimited time & bandwidth * Non-special account needs to sign up every hour & gets diminishing bandwidth (if you want to allow visitors)
And if it’s all summed up in a yearly basis,there are 5.25 million driving accidents that take place per year. Statistics show that each year,43,000 or more of the United States’ population die due to vehicular accidents and around 2.9 million people end up suffering light or severe injuries. In a certain five year period, there had been recorded a 25% of the driving population who encountered or were involved in car accidents. It is also affirmed that car accidents kill a child every 3 minutes.Statistics on the number of car accidents taking place in every state or country is normally based on medical or insurance records filed.
But you're right, I'm sure. People are/such/ good drivers. There's no way we could improve on those numbers. It's probably not even worth trying.
we recently bought a Prius with some web-enabled computer thingy in the dashboard... with our iPhones. Basic things such as MP3 song time display are missing.
That sounds wrong. Certainly our prius and iDevices communicate track information correctly.
"Social media" information however by enlarge unregulated data that is being sold/traded/hacked. That is what most of us who know more than just, "Durrrrr your information is out there anyway so who cares what I do online," understand. And why we tend to have some serious issues that we feel need to be discussed about the way this data is being gathered and analyzed without any oversight.
No, you kissed your privacy goodbye when you started interacting with others.
Your friends all submitted their email accounts so that facebook could mine them for friends. You are connected to all your friends' accounts on facebook (though not visibly to the outside), and they can mine your address for associations and know to a great degree who you are, what you like, etc - because they know who your friends are and what they like.
I'm not a business and I love it. And the business I work for uses google (thank goodness we no longer use some Exchange product).
I'd say that if you're in a grey market, using any cloud service is a grey area right now. Frankly, if you're Mr. Dotcom and don't encrypt all your email, you're just asking for trouble. Hell, you're asking for trouble in any case. Any server he was using was going to be confiscated - may as well leave it in the cloud unless you have a deadman switch on your server room (which seems like a good idea in his case).
Rating games on metacritic doesn't seem to do what I want. There are plenty of great first person shooters that I would never wanna buy. Not because they're bad, per se, but because I don't generally like those kinds of games.
On the flip side: I really like some simplistic strategy games that are well done. I really don't care for 99% of first person shooters. So I would very much like to see ratings reflect the kinds of choices I've made in the past. Metacritic doesn't seem to do that for me.
Netflix DOES let you see what other folks said about a movie. Not that I care. What I DO want from netflix that I do not have is the rotten tomato score.
Which is exactly what I want from steam: metacritic score for games (which is like RT) AND a personalized best guess score based on how I have scored games in the past.
There's no consumer-based reason not to have both (and the ability to hide one/both). The only reasons I can think of is lack of developer time and/or desire to sell really crappy games.
Several posts recommending metacritic. Which is sucky for the PC and a loser for the living room. If steam wants to be in the living room, they should have a UI that is just as good (at least) for picking new games as netflix has for picking shows to watch. Integrated.
Still - I appreciate the metacritic pointers and will dig into that.
Know what I hate about steam? I know you wanna know!
No ratings.
At least Apple lets me rate apps! Steam doesn't even let you do that. I know they feel they can't afford it, because then folks will stop buying the 99% crap games. But unless they get their act together, I'd be happy for iOS to kick steam's ass.
And if steam wanted to do it right, they'd use something like the netflix rating system - where folks that like the same kinds of games I like will inform predicted scores for other games.
I mean -- how hard is that? Netflix has these competitions for ratings prediction, and the top few are always within a few percent of each other. Pick up the scraps and implement it!
As long as it's read only access, I don't really see a problem. Maybe it has to be read/write? I guess I'm just not familiar with those products... I suppose I would VPN the hell out of something like that.
After all, if your friend comes over and uses your network and his machine happens to be pwned...
Yeah, sounds like the project is a rewrite.
As for syntax changes, I think that 1.8 is forward compatible to 1.9 (though strings became UTF compliant?), so maybe some edges in there. Last time I tried my 1.9 app in 2.0.alpha/beta/whatever, it just worked. In general the language has been very forward compatible and the revs have only happened every few years. Rails has a history of slapping developers around for major releases, but for the progress they're making and with the historical support, I don't mind at all.
I'm sorry you got handed a poorly written project.
If you do a lot of number crunching, you might want to check out JRuby. Porting is often trivial, and number crunching (or adding pure java functionality) may speed things up a lot.
But the first thing I'd do is write a bunch of unit (and integration) tests so that you know where you stand.
Good luck!
(sorry if this is double-posted - slashdot is choking)
Perl is way faster. Like twice as fast. Check out my test:
% time (echo | ruby)
( echo | ruby; ) 0.01s user 0.00s system 91% cpu 0.016 total
% time (echo | perl)
( echo | perl; ) 0.00s user 0.00s system 84% cpu 0.007 total
Though this is ruby 1.9.3. I don't think 2.0 is twice as fast as 1.9.3.
But I've looked at ruby syntax a bit and it looks like it might have the advantage perl has for quick ad hoc text parsing but an overall cleaner syntax.
What I don't care a lot about is fancy pants modules like rails. If I want to do something serious there's python.
If you're happy shredding text with perl, I see no reason to change. If you're happy doing serious work with python, I see no reason to change.
Ruby is a, dynamic, duck-type OO language with closures, exceptions, and a debugger.
It has nice library infrastructure: http://rubygems.org/
It is generally a little less popular than Python and Perl, depending on your yardstick: http://www.langpop.com/
There are a few implementations of ruby, including one in java (with great bridging to java classes), one for iOS (with great bridging to iOS libraries), and one based on .net (with great bindings there). So if you have a particular target platform, one of those may interest you.
But here's the cononical answer to your question:
http://c2.com/cgi/wiki?PythonVsRuby
You might be interested in JRuby and Jython and their ability to communicate...
I code in Ruby for a living (Rails), and I think it's a really fun language. Which is something a fair number of rubyists say, and which is something you don't hear a lot of other folks say about their language of choice. For what that's worth...
They're sure dropping.
This page says 50% in 5 years:
http://www.solstats.com/blog/solar-energy/solar-panel-prices-drop-by-half-over-the-last-5-years/
Seriously.
I wonder why using an umbrella hasn't become a political statement in countries where drone strikes are a concern. A couple of 10's of thousands of black umbrellas with a picture of a fist, middle finger raised, printed on the top so they're all identical. Just leave 'em at the doors to be picked up by the next person leaving.
And it protects you from the sun!
Thank you so much! I knew someone had to have invented this wheel. Looks like just the ticket!
Let me see if I've got this right - you want a Linux-based blackbox that does exactly what you want it to do, but you're not willing to make it yourself, based on your perception that someone else should have already done the work for you?
Yeah. I can't be the first person to think this is a good idea...
Methinks maybe you should just stick to Windows boxes.
I don't have one of those. Do you think it'd help?
Yeah - I don't happen to have one of those routers. Which is why I'd love to see a disk image.
You could also consider rolling your own solution, if you have a particular program or suite of apps in mind; basically, just install the distro of your choice, install and configure your apps, then add them to cron.
Right. But this seems like such an obvious and common problem - everyone has a router and many many geeks have a server box of some kind - that it seems like there should already be a pretty full-blown solution without my having to roll one.
This, perhaps?
Uh. Nope. I'm looking for a disk image I could fire up on a tiny pc (or in a VM) that'd meter wifi...
Isn't there FreeBSD or Linux disk image that'll solve this?
<WIFI> <=> [Router] < routes only to > [IP address of solution]
Where the solution does something like the standard coffeeshop login +
* Special account gets unlimited time & bandwidth
* Non-special account needs to sign up every hour & gets diminishing bandwidth (if you want to allow visitors)
Something like http://dev.wifidog.org/, but under active development?
Self-driving cars are not a bad idea. Self-driving cars that roll on tires are stupid.
Why?
PRT is the answer
I'll bite.
To start with: what do you propose we make those rails out of, and how much will we need?
That's some impressive FUD you've got going, there. But that's all it is.
http://www.usacoverage.com/auto-insurance/how-many-driving-accidents-occur-each-year.html
And if it’s all summed up in a yearly basis,there are 5.25 million driving accidents that take place per year. Statistics show that each year,43,000 or more of the United States’ population die due to vehicular accidents and around 2.9 million people end up suffering light or severe injuries. In a certain five year period, there had been recorded a 25% of the driving population who encountered or were involved in car accidents. It is also affirmed that car accidents kill a child every 3 minutes.Statistics on the number of car accidents taking place in every state or country is normally based on medical or insurance records filed.
But you're right, I'm sure. People are /such/ good drivers. There's no way we could improve on those numbers. It's probably not even worth trying.
we recently bought a Prius with some web-enabled computer thingy in the dashboard... with our iPhones. Basic things such as MP3 song time display are missing.
That sounds wrong. Certainly our prius and iDevices communicate track information correctly.
"Social media" information however by enlarge unregulated data that is being sold/traded/hacked. That is what most of us who know more than just, "Durrrrr your information is out there anyway so who cares what I do online," understand. And why we tend to have some serious issues that we feel need to be discussed about the way this data is being gathered and analyzed without any oversight.
Do we?
Why?
No, you kissed your privacy goodbye when you started interacting with others.
Your friends all submitted their email accounts so that facebook could mine them for friends. You are connected to all your friends' accounts on facebook (though not visibly to the outside), and they can mine your address for associations and know to a great degree who you are, what you like, etc - because they know who your friends are and what they like.
I'm not a business and I love it. And the business I work for uses google (thank goodness we no longer use some Exchange product).
I'd say that if you're in a grey market, using any cloud service is a grey area right now. Frankly, if you're Mr. Dotcom and don't encrypt all your email, you're just asking for trouble. Hell, you're asking for trouble in any case. Any server he was using was going to be confiscated - may as well leave it in the cloud unless you have a deadman switch on your server room (which seems like a good idea in his case).
Thanks, Google!
I can't be bothered to run my own damn SMTP/IMAP/etc any more.
Rating games on metacritic doesn't seem to do what I want. There are plenty of great first person shooters that I would never wanna buy. Not because they're bad, per se, but because I don't generally like those kinds of games.
I want scores that reflect my tastes.
On the flip side: I really like some simplistic strategy games that are well done. I really don't care for 99% of first person shooters. So I would very much like to see ratings reflect the kinds of choices I've made in the past. Metacritic doesn't seem to do that for me.
Netflix DOES let you see what other folks said about a movie. Not that I care. What I DO want from netflix that I do not have is the rotten tomato score.
Which is exactly what I want from steam: metacritic score for games (which is like RT) AND a personalized best guess score based on how I have scored games in the past.
There's no consumer-based reason not to have both (and the ability to hide one/both). The only reasons I can think of is lack of developer time and/or desire to sell really crappy games.
Several posts recommending metacritic. Which is sucky for the PC and a loser for the living room. If steam wants to be in the living room, they should have a UI that is just as good (at least) for picking new games as netflix has for picking shows to watch. Integrated.
Still - I appreciate the metacritic pointers and will dig into that.
Know what I hate about steam? I know you wanna know!
No ratings.
At least Apple lets me rate apps! Steam doesn't even let you do that. I know they feel they can't afford it, because then folks will stop buying the 99% crap games. But unless they get their act together, I'd be happy for iOS to kick steam's ass.
And if steam wanted to do it right, they'd use something like the netflix rating system - where folks that like the same kinds of games I like will inform predicted scores for other games.
I mean -- how hard is that? Netflix has these competitions for ratings prediction, and the top few are always within a few percent of each other. Pick up the scraps and implement it!
Eventually, everything else will run out.
And then the 'renewable' sources will run out.
You just have to take the long term view. Really long term.
As long as it's read only access, I don't really see a problem. Maybe it has to be read/write? I guess I'm just not familiar with those products... I suppose I would VPN the hell out of something like that.
After all, if your friend comes over and uses your network and his machine happens to be pwned...
And therefore you should do the same? Meh. Not for me. Park in front of my place - free wifi.
1) http://en.wikipedia.org/wiki/Traffic_shaping
2) Don't have open (insecure) systems. Ever.
3) FUD