« first day (679 days earlier)    last day (14 days later) » 

user1804599
11:03 AM
yahoo
 
11:45 AM
@rightføld - I have a weird feeling that you're spouting stuff like 'f7u' and 'yahoo' to keep this channel alive. :-)
 
user1804599
@S.R.I :P
 
@rightføld truth time - how's styx?
 
user1804599
Fun.
 
user1804599
Scheduler, lexer and parser work.
 
user1804599
And interpretation of some instructions.
 
11:48 AM
I thought it was a compiler implementation? What's the scheduler for?
 
user1804599
The scheduler is for green threads.
 
user1804599
It's similar to what Erlang, GHC and Go do.
 
Ah, nice. I see that in vm.cpp
 
user1804599
Yeah. I should switch to a proper thread pool library instead of this custom race condition induced crap, though.
 
scheduled fibers all over the place, man. :-) Just be sure that you protect reads/writes and do them in order.
 
user1804599
11:59 AM
It's a thread-safe queue.
 
user1804599
The only race condition I know of is this.
 
user1804599
But when I replace that code by a thread pool library the race condition will be gone.
 
hmmm - you do a call and each of those calls in turn spawn threads, right? you end up doing multiple things. I'm not particularly fond of threads. In this case, I think spawn should be atomic - although I don't see much harm here.
I admit it's been a while since I looked at C++ code (and even longer since I wrote a line of it) :-)
 
user1804599
@S.R.I call is used by the VM consumer.
 
user1804599
I only plan to use it for main and FFI callbacks.
 
user1804599
12:07 PM
But yeah you're right, it should be thread-safe.
 
Right.
gotta go now. I'm watching your work with interest. Keep going and have fun! :-)
 
user1804599
Bye!
 

« first day (679 days earlier)    last day (14 days later) »