This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#376 2012-11-18 23:49:40

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

fanofcena wrote:

with smalltak and flash its easy , with c++ err i am worried a little.

dont you think they will need something like an event stack or something ? to make their life easier ?

You're right that they'll need to maintain a list of threads, but I'm not sure what makes it so much more difficult in C++ than other languages. (Dynamic arrays are a little bit trickier, but there are standard libraries for that stuff.)


nXIII

Offline

 

#377 2012-11-19 11:16:39

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

nXIII wrote:

fanofcena wrote:

with smalltak and flash its easy , with c++ err i am worried a little.

dont you think they will need something like an event stack or something ? to make their life easier ?

You're right that they'll need to maintain a list of threads, but I'm not sure what makes it so much more difficult in C++ than other languages. (Dynamic arrays are a little bit trickier, but there are standard libraries for that stuff.)

Yeah, like the vector type defined in the standard library.  We can also just use dynamic memory allocation with malloc() -- we just can't forget to release the memory at the end of the program.

Offline

 

#378 2012-11-19 12:13:13

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

Does anyone use Arch Linux? I am out of reach of my Arch computer and think it would be a good time to upload the package to our downloads.

If not, I'll have it up by next monday.

Also, could I be admin on github? I'm thinking of adding travis support but I need access to service hooks.

Last edited by logiblocs (2012-11-19 12:20:25)

Offline

 

#379 2012-11-19 12:24:15

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

hey, about threads, if you want to do it right you should implement it yourselves  wink

you could make it with iterators or something, this is how we're going to do this in M30W

Last edited by roijac (2012-11-19 12:27:06)

Offline

 

#380 2012-11-19 14:40:32

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

logiblocs wrote:

Does anyone use Arch Linux? I am out of reach of my Arch computer and think it would be a good time to upload the package to our downloads.

If not, I'll have it up by next monday.

Also, could I be admin on github? I'm thinking of adding travis support but I need access to service hooks.

ok, i think i've made you admin now... let me know if it works!


http://i.imgur.com/1QqnHxQ.png

Offline

 

#381 2012-11-19 14:58:00

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

roijac wrote:

hey, about threads, if you want to do it right you should implement it yourselves  wink

you could make it with iterators or something, this is how we're going to do this in M30W

Yep. and in trying to keep this a port we will need the option of native threads for custom block. and maybe broadcast codes to use proper threads outside of custom blocks...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#382 2012-11-19 22:26:52

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

amcerbu wrote:

nXIII wrote:

fanofcena wrote:

with smalltak and flash its easy , with c++ err i am worried a little.

dont you think they will need something like an event stack or something ? to make their life easier ?

You're right that they'll need to maintain a list of threads, but I'm not sure what makes it so much more difficult in C++ than other languages. (Dynamic arrays are a little bit trickier, but there are standard libraries for that stuff.)

Yeah, like the vector type defined in the standard library.  We can also just use dynamic memory allocation with malloc() -- we just can't forget to release the memory at the end of the program.

Malloc is bad if you are using C++ use Vectors , Stacks and etc they are much faster and better [ trust me i have been doing this for a while ].

Btw event loops are not defined in any standard library [yet] , and they probably are the best way to implement what you are trying to do , otherwise you can always create something like a call queue and call it fifo style but that wont be pure multi-tasking et-al


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#383 2012-11-19 22:34:58

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

fanofcena wrote:

Malloc is bad if you are using C++ use Vectors , Stacks and etc they are much faster and better [ trust me i have been doing this for a while ].

Malloc is bad if you are using C++, period.  tongue

Btw event loops are not defined in any standard library [yet] , and they probably are the best way to implement what you are trying to do , otherwise you can always create something like a call queue and call it fifo style but that wont be pure multi-tasking et-al

I think a process list is more accurate to Scratch's thread model than an event loop or a call queue.


nXIII

Offline

 

#384 2012-11-19 22:41:54

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

nXIII wrote:

fanofcena wrote:

Malloc is bad if you are using C++ use Vectors , Stacks and etc they are much faster and better [ trust me i have been doing this for a while ].

Malloc is bad if you are using C++, period.  tongue

Btw event loops are not defined in any standard library [yet] , and they probably are the best way to implement what you are trying to do , otherwise you can always create something like a call queue and call it fifo style but that wont be pure multi-tasking et-al

I think a process list is more accurate to Scratch's thread model than an event loop or a call queue.

Hmm dunno  big_smile


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#385 2012-11-20 02:43:01

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

logiblocs wrote:

Does anyone use Arch Linux? I am out of reach of my Arch computer and think it would be a good time to upload the package to our downloads.

If not, I'll have it up by next monday.

Also, could I be admin on github? I'm thinking of adding travis support but I need access to service hooks.

ok, i think i've made you admin now... let me know if it works!

Yup, Thanks!

Offline

 

#386 2012-11-20 16:09:48

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

hmm, travis still seems to be building with rake instead of make...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#387 2012-11-20 16:37:28

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

Who's travis?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#388 2012-11-20 16:53:04

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

bobbybee wrote:

Who's travis?

I assume this


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#389 2012-11-21 15:43:50

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

I'm currently setting up a Jenkins server... Seems to be working so far  smile


http://i.imgur.com/1QqnHxQ.png

Offline

 

#390 2012-11-22 13:45:20

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

Travis works well because it integrates nicely in github, it is hosted and it can test every push etc. Jenkins is good because it can do artefacts if you set it up right. I think a mixture of both would be good.

Offline

 

#391 2012-11-22 13:51:53

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

hmm, travis still seems to be building with rake instead of make...

It by default goes to ruby. We just need to set up the travis.yml file right. The only potential hiccup is that we have to make a script to download the dependencies. I am thinking that just the header files should be all right - I don't think we need to test how it links. If we do the then we just need to modify the script.

http://about.travis-ci.org/docs/user/languages/cpp/ for more information

Last edited by logiblocs (2012-11-22 13:52:34)

Offline

 

#392 2012-11-22 14:23:01

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

Travis is now working, it turns out I had wrongly named .travis.yml (I called it travis.yml). Everything is working now and we have our first passing build.

Offline

 

#393 2012-11-24 08:13:11

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

bump


http://i.imgur.com/1QqnHxQ.png

Offline

 

#394 2012-11-26 05:43:24

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

We now have a logo! If you want the svg then please tell me!
http://i.imgur.com/GsJSW.png

Last edited by TRocket (2012-11-26 05:44:09)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#395 2012-11-26 07:37:56

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

Please can I have the svg? I think I'll make a smaller icon based on it.

Offline

 

#396 2012-11-26 08:05:58

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

logiblocs wrote:

Please can I have the svg? I think I'll make a smaller icon based on it.

yep, it's here you'll need the scratch font to render it properly...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#397 2012-11-28 01:53:30

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

I've posted this on the scratch raspberry pi forums. Still no reply yet  sad


http://i.imgur.com/1QqnHxQ.png

Offline

 

#398 2012-11-30 12:35:41

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

Can someone else take over the WX changes... I have absolutely no experience with OpenGL or WX...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#399 2012-11-30 14:38:08

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

Can someone else take over the WX changes... I have absolutely no experience with OpenGL or WX...

I can take over.


http://i.imgur.com/YBeXc.png

Offline

 

#400 2012-11-30 16:18:17

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

pwiter wrote:

TRocket wrote:

Can someone else take over the WX changes... I have absolutely no experience with OpenGL or WX...

I can take over.

thanks  smile  I'll make a start on the IPPX...


http://i.imgur.com/1QqnHxQ.png

Offline

 

Board footer