OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 1:21 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 11:05 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
Hey guys,

I've recently implemented a fun project called "bildskript". With this program you can draw "circuits" like this:
Image

And then run this. Here for example clicking on one of the tappers lets the counter go up, clicking on the other lets it go down.
To draw circuits, you can either use the built-in editor, or use any painting program you'd like. What basically happens is that anything (mostly) red is interpreted as components, black pixels are lanes, gray pixels are used to make a lane "hop" over another lane. To split a lane in two you must use a "dup" (else the lane walking algorithm would've been **** to implement).

Special thing here is that a lane can not only transfer values 1 or 0, but also any number. You can write simple things, or for example write an actually working calculator like this:
Image

The first one to write a compiler that compiles a simple language to image scripts like that gets a beer :mrgreen:

Binary release: http://91.206.143.88/bildskript/bildskript-0.1.zip
Git project: https://github.com/maxdev1/bildskript

Have fun!
Max

_________________
Ghost OS - GitHub


Last edited by max on Wed Dec 03, 2014 11:46 am, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 11:12 am 
Offline
Member
Member

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 306
Location: Germany
Even though I don't get how to use it, it looks great. How long did it take you to implement it?

_________________
managarm


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 11:12 am 
Offline
Member
Member
User avatar

Joined: Wed Jul 23, 2014 8:00 am
Posts: 96
Location: The Netherlands
What day is it today? International Reveal Your Project Day? Lmao. I've seen at least 4 other projects on an app I'm on.

That aside, it looks cool and interesting. First guy to implement a fully working CPU on this gets a second beer from me.

_________________
My post is up there, not down here.


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 11:14 am 
Offline
Member
Member

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 306
Location: Germany
SoLDMG wrote:
That aside, it looks cool and interesting. First guy to implement a fully working CPU on this gets a second beer from me.
Easy, put it on reddit and try to get it onto the front page.

_________________
managarm


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 11:16 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
no92 wrote:
Even though I don't get how to use it, it looks great. How long did it take you to implement it?

Haha, just draw something and see if it works :D
EDIT: ah, and well the basic interpreter thing did not take too long, maybe 2-3 days, the "studio" ui and making it a little more comfortable took a little longer though.

SoLDMG wrote:
What day is it today? International Reveal Your Project Day? Lmao. I've seen at least 4 other projects on an app I'm on.

That aside, it looks cool and interesting. First guy to implement a fully working CPU on this gets a second beer from me.
lol i guess it is :mrgreen:
Oh yeah, that would be badass. A *little* crazy but amazing. I mean, look at what the Minecraft-guys accomplish :P

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 11:30 am 
Offline
Member
Member
User avatar

Joined: Wed Jul 23, 2014 8:00 am
Posts: 96
Location: The Netherlands
max wrote:
Oh yeah, that would be badass. A *little* crazy but amazing. I mean, look at what the Minecraft-guys accomplish :P

Yup, they even got a dual-core one running somehow. I couldn't even get my NOT gate working... :cry:

_________________
My post is up there, not down here.


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 11:33 am 
Offline
Member
Member
User avatar

Joined: Wed Jul 23, 2014 8:00 am
Posts: 96
Location: The Netherlands
no92 wrote:
Easy, put it on reddit and try to get it onto the front page.

I would do it if I had a reddit account. And I bet someone would actually be crazy enough to implement an old ARM chip or something xD.

_________________
My post is up there, not down here.


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 1:24 pm 
Offline

Joined: Sat Nov 09, 2013 3:44 pm
Posts: 11
I was one of the prominent early engineers with the Redstone Development Foundation for a while. What really fun was we would go onto public servers, create some type of establishment underground, and then spend the next few days making a CPU in survival mode.


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 2:49 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 23, 2014 8:00 am
Posts: 96
Location: The Netherlands
setra wrote:
I was one of the prominent early engineers with the Redstone Development Foundation for a while. What really fun was we would go onto public servers, create some type of establishment underground, and then spend the next few days making a CPU in survival mode.

And lag the absolute crap out of the server, I presume.

_________________
My post is up there, not down here.


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Sun Nov 30, 2014 3:24 pm 
Offline

Joined: Sat Nov 09, 2013 3:44 pm
Posts: 11
The real problem was that most of us needed to get better GPUs to render our CPU.


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Tue Dec 02, 2014 9:34 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
setra wrote:
The real problem was that most of us needed to get better GPUs to render our CPU.

So - you are volunteering? :mrgreen:

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Tue Dec 02, 2014 10:25 am 
Offline
Member
Member

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 306
Location: Germany
You should really start a contest - on writing the best program to create a CPU for bildskript :D

_________________
managarm


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Wed Dec 03, 2014 5:57 am 
Offline
Member
Member
User avatar

Joined: Wed Jul 23, 2014 8:00 am
Posts: 96
Location: The Netherlands
no92 wrote:
You should really start a contest - on writing the best program to create a CPU for bildskript :D

Yeah, that'd be awesome. Then we can optimize real life CPU's too, if the randomly generated CPU can be optimized.

_________________
My post is up there, not down here.


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Wed Dec 03, 2014 8:17 am 
Offline
Member
Member

Joined: Thu May 28, 2009 2:41 pm
Posts: 70
Location: Germany
Maybe I'm blind but where's bildskript.jar and sources.zip?
In GIT there are only png, layout and textfiles.

Did I miss anything? I'd like to try this :)


Top
 Profile  
 
 Post subject: Re: bildskript 0.1 - draw & run circuits!
PostPosted: Wed Dec 03, 2014 11:47 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
Cjreek wrote:
Maybe I'm blind but where's bildskript.jar and sources.zip?
In GIT there are only png, layout and textfiles.

Did I miss anything? I'd like to try this :)

lol! I can't believe I actually forgot the binary release link. I edited my initial post, you can get the .zip with both the jar and the sources here: http://91.206.143.88/bildskript/bildskript-0.1.zip

_________________
Ghost OS - GitHub


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 165 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group