rust-community / rustbridge

[DEPRECATED] Workshop material to teach Rust in the style of Railsbridge
https://github.com/rustbridge/team
Other
166 stars 28 forks source link

Mondrian-pattern painter workshop #15

Open milibopp opened 8 years ago

milibopp commented 8 years ago

suggested by @broesamle in #2.

broesamle commented 8 years ago

https://commons.wikimedia.org/wiki/Piet_Mondrian#/media/File:Piet_Mondriaan,_1921_-_Composition_en_rouge,_jaune,_bleu_et_noir.jpg

milibopp commented 8 years ago

I think there should be some tooling overlap with #10

broesamle commented 8 years ago

@aepsil0n I agree -- for handling graphics at least.

broesamle commented 8 years ago

started with an outline in the readme

comments are welcome :-)

milibopp commented 8 years ago

Sounds all good. I merely wonder, how much you can get done in a workshop like this. Haven't run anything like it before, so I find it hard to judge. But from teaching Rust to non-Rust developers it can be interesting to see, how little you get done in a new language in a few hours.

broesamle commented 8 years ago

I share your concerns here!

For the moment I see it as an inspirational way of staging the problem of concurrency -- rather than aiming for getting it done from scratch in the workshop.

i think its worth considering either a high level of prefabrication or keep it as a conceptual and ostensive thought experiment. In the latter case it could lead to an extended "what you could try next" or "what the next workshop will teach you"

broesamle commented 8 years ago

@aepsil0n , since you have reviewed much of the graphics libs for the game workshop #10 -- do you have any concerns using piston for the actual painting job in the mondrian tut? (I remember a conversation with @skade about one of the frameworks beeing slow/depricated, but I don't remember which one).

milibopp commented 8 years ago

Well, i think we could build something much simpler with fewer dependencies. I wanted to tackle that at some point. nonetheless, until that is done, Piston seems to be reasonable. In any case, it would be good to aim for a very simple opaque 2D graphics facade.

broesamle commented 8 years ago

For now I worked on some prerequisite concepts/examples .. one on multi-threadding os pending (not yet merged into the complilation)

https://github.com/broesamle/RustWorkshop/

Based on that I hope it will be only a few lines of code :-)

booyaa commented 8 years ago

saw this and thought of you @broesamle

https://twitter.com/nycartblog/status/715469241290530816

erickt commented 8 years ago

Some folks in the SF meetup also started to work through some things in https://github.com/rust-community/rustbridge/tree/master/workshops/beginners.

broesamle commented 8 years ago

An intro section is now available in the README (still WIP). https://github.com/rust-community/rustbridge/tree/mondrianA/workshops/mondrian-pattern

I will soon decide on how much background info from the Minimal Instructives will have to be reworked, referenced, explained or just be provided (in a deus ex machina fasion) for the mondrian workshop itself.

broesamle commented 8 years ago

so far, multipaint is not more than a proof of concept ... but there are multiple threads sending drawing 'jobs' to one server thread that actually paints them in a window. Yeah

the only thing that is missing is the 'mondrian' part ;-)

At this point a great THANK YOU to @aepsil0n for directing me to piston. (And, yes and it would be great to have something less dependency intense!)

broesamle commented 8 years ago

Todos: