bildskript 0.1 - draw & run circuits!
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
bildskript 0.1 - draw & run circuits!
Hey guys,
I've recently implemented a fun project called "bildskript". With this program you can draw "circuits" like this:
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:
The first one to write a compiler that compiles a simple language to image scripts like that gets a beer
Binary release: http://91.206.143.88/bildskript/bildskript-0.1.zip
Git project: https://github.com/maxdev1/bildskript
Have fun!
Max
I've recently implemented a fun project called "bildskript". With this program you can draw "circuits" like this:
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:
The first one to write a compiler that compiles a simple language to image scripts like that gets a beer
Binary release: http://91.206.143.88/bildskript/bildskript-0.1.zip
Git project: https://github.com/maxdev1/bildskript
Have fun!
Max
Last edited by max on Wed Dec 03, 2014 11:46 am, edited 4 times in total.
-
- Member
- Posts: 307
- Joined: Wed Oct 30, 2013 1:57 pm
- Libera.chat IRC: no92
- Location: Germany
- Contact:
Re: bildskript 0.1 - draw & run circuits!
Even though I don't get how to use it, it looks great. How long did it take you to implement it?
Re: bildskript 0.1 - draw & run circuits!
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.
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.
-
- Member
- Posts: 307
- Joined: Wed Oct 30, 2013 1:57 pm
- Libera.chat IRC: no92
- Location: Germany
- Contact:
Re: bildskript 0.1 - draw & run circuits!
Easy, put it on reddit and try to get it onto the front page.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.
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
Re: bildskript 0.1 - draw & run circuits!
Haha, just draw something and see if it worksno92 wrote:Even though I don't get how to use it, it looks great. How long did it take you to implement it?
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.
lol i guess it isSoLDMG 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.
Oh yeah, that would be badass. A *little* crazy but amazing. I mean, look at what the Minecraft-guys accomplish
Re: bildskript 0.1 - draw & run circuits!
Yup, they even got a dual-core one running somehow. I couldn't even get my NOT gate working...max wrote: Oh yeah, that would be badass. A *little* crazy but amazing. I mean, look at what the Minecraft-guys accomplish
My post is up there, not down here.
Re: bildskript 0.1 - draw & run circuits!
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.no92 wrote:Easy, put it on reddit and try to get it onto the front page.
My post is up there, not down here.
Re: bildskript 0.1 - draw & run circuits!
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.
Re: bildskript 0.1 - draw & run circuits!
And lag the absolute crap out of the server, I presume.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.
My post is up there, not down here.
Re: bildskript 0.1 - draw & run circuits!
The real problem was that most of us needed to get better GPUs to render our CPU.
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
Re: bildskript 0.1 - draw & run circuits!
So - you are volunteering?setra wrote:The real problem was that most of us needed to get better GPUs to render our CPU.
-
- Member
- Posts: 307
- Joined: Wed Oct 30, 2013 1:57 pm
- Libera.chat IRC: no92
- Location: Germany
- Contact:
Re: bildskript 0.1 - draw & run circuits!
You should really start a contest - on writing the best program to create a CPU for bildskript
Re: bildskript 0.1 - draw & run circuits!
Yeah, that'd be awesome. Then we can optimize real life CPU's too, if the randomly generated CPU can be optimized.no92 wrote:You should really start a contest - on writing the best program to create a CPU for bildskript
My post is up there, not down here.
Re: bildskript 0.1 - draw & run circuits!
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
In GIT there are only png, layout and textfiles.
Did I miss anything? I'd like to try this
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
Re: bildskript 0.1 - draw & run circuits!
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.zipCjreek 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