Mar
05
2013
4

Rubinius support for rbSFML

After I finished the chapter deadline for the publisher I had some free time in the weekend. I spent some of it in making rbSFML compatible with the high performing Ruby implementation Rubinius. Sweet! Sure it required me to do a pull request to the Rubinius repository and do some fixes for them but it is now fully supported.

So if you want to do parallel tasks with rbSFML that should now be fully supported as well since Rubinius doesn’t have a GIL so using native threads there is actually worth it.

I’ve encountered a minor problem with it on Arch Linux. Somehow Rubinius gets it to crash inside Nvidia’s library libGL when the opengl context is being destroyed and I don’t understand why. But well I’ll track it down and fix it as soon as I get time. But it is still usable since the crash happens only when you are exiting the application and as it is destroying the last window created.

May
19
2010
0

Ascension’s Loading Manager

I did something pretty cool today ^^ Well at least I think it’s pretty cool. Also quite simple. A module in Ruby that’s pretty independent and can be used for most applications. It’s called LoadingManager and it will queue things needed by the application and load them in a separate thread for you without you even having to be aware that it is run in another thread.

Here comes an example with it using Rubygame surfaces

1
2
3
4
5
6
7
8
9
10
11
require 'rubygame'
require 'loading_manager.rb'
 
LoadingManager.load Rubygame::Surface, "image1.png"
LoadingManager.load Rubygame::Surface, "image2.png"
LoadingManager.load Rubygame::Surface, "image3.png"
 
# Will print something between 0.0 to 1.0 depending on how far the thread has gone
p LoadingManager.progress
# Wait for the loading to finish before exiting the application.
LoadingManager.join

(more…)

Mar
28
2009
0

mSCRiPT 1.0 Release

I’ve released the scripting language I’ve done myself. You can read a whole tutorial on how it works here.
I hope you like it!

(more…)

Jan
14
2009
0

Lol kernel

I was just bored and had nothing to do. So I made a kernel that was kinda funny. Nothing advanced, Just a little surprise that is printed out on the display.

Though I won’t continue to work on this. Was just a fun thing to do.

Here’s a Zip with the source: kernel

Ow yeah an important thing to note. When booting you have to tell grub where the kernel is located on the floppy img(If you compiled it using make) you do so by writing this into the prompt:

grub>kernel 200+26
grub>boot

Grub counts by units and one unit is 512 bytes. So this tells grub that the kernel start at unit 200 and is 26 units big.

Written by Groogy in: Uncategorized | Tags: , ,

Powered by WordPress. Theme: TheBuckmaker