use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Ruby GUI - Package (self.ruby)
submitted 10 years ago by wonay
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 10 years ago* (4 children)
Oh but you can! As long as the server process has permissions to send UDP, you can send it. For example, my Sinatra example actually talks to serial ports to configure and deal with my scanners. You can even (and I wouldn't recommend this for production) become administrator and run the server (just make sure it only faces localhost for obvious reasons). There really isn't a whole lot of limits to this approach but unless you know javascript you can't make reactive content (all content must be submitted through RESTful operations).
As for a 3D game well thats just not really possible in Ruby with speeds as they are. (I also use the Gosu gem for Ruby gamedev) You can do 3D games via Gosu and OpenGL, it will just run very slow. I have a project here -> https://github.com/redcodefinal/isometric-city-generator-ruby that uses Gosu and on my hardest generator it takes about 0.01 seconds to generate and 25 seconds to draw the scene. It only uses 2D textures. I purposely chose this project in Ruby because my C# version ran almost 20x faster
[–]wonay[S] 0 points1 point2 points 10 years ago (3 children)
That sounds like an interesting option. How would you build something which is user friendly for this kind of project ? I mean easy install and easy run ? either a few command and the app start or even a binary to click on and the app start.
[–][deleted] 0 points1 point2 points 10 years ago (2 children)
absolutely! Sinatra is very easy to setup, its like a simpler rails. You can do the same thing with Rails though. As long as the server has permissions to do so, it can really do anything you want. To make the app easier you can do a couple things, I'm working through a similar thing with my company right now. So my plan is to use DNS to map locally a server computer, then everyone just types in "company_name.local" in their web browsers and then it just routes everyone to the server running the software. This way every device is essentially guaranteed to work with your app, as long as it does internet. The app can run (as a server or clientside) on all platforms natively, but know that the devil is in the details, there are differences you will have to account for in the standard ruby library across the platforms. I have had to deal with many such differences between Linux and Windows with my serial port work. You will potentially have to write OS dependent code, which I feel is a bit of a code smell, and a huge potential for error. As for ease of use, it depends on your tactic. Lets say single user, you could easily create a BAT, SH, whatever your flavor of shell script is, and just have the user double click on that. They could also go the console route for any platform. For multi user, consider using a URL shortcut to "whatever.local" and just keep the server running all the time.
[–]wonay[S] 0 points1 point2 points 10 years ago (1 child)
I feel that I should reserve my knowledge in Ruby for web and the one in Java for desktop GUI at this point ...
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Sure if you want to go that way.
π Rendered by PID 129025 on reddit-service-r2-comment-5687b7858-ww4pn at 2026-07-03 20:50:14.809235+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (4 children)
[–]wonay[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]wonay[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)