Re: Challenges implementing an "actor system" in Nim (long post!)

2017-10-29 Thread monster
@Ar I know what a game entity system is. This is _not_ what I'm trying to do here. I'm talking about actors in the "erlang" sense of the word. While I want to use the actor system for games, I want it to be generic enough to be used in other context. The only really game-specific thing

Re: Challenges implementing an "actor system" in Nim (long post!)

2017-10-29 Thread Arrrrrrrrr
This is not completely related to nim, but have you tried a google search first? I found some interesting threads on the subject: [https://gamedev.stackexchange.com/questions/117602/updating-a-multithreaded-entity-component-system](https://gamedev.stackexchange.com/questions/117602/updating-a-mul

Challenges implementing an "actor system" in Nim (long post!)

2017-10-29 Thread monster
TL;DR: I want to create an “actor system” in Nim, and I need some feedback, in particular, on how to move data across threads. After reading the docs, multiple posts on the forum, and trying to code a bit myself, I believe I am ready to present my long-term goal, and I’m asking for some brain-s

Re: Send data structures between threads?

2017-10-29 Thread mratsim
The core is the same as a seq, except that I allocate memory manually but deallocated automatically via GC. An array of data that I allocate manually hence `data: ptr UncheckedArray[T]` When I want bounds checking or indexing from the end I need a length, hence len: int I don't want to manage

Re: How to get real time of parallel code

2017-10-29 Thread wizzardx
I've made an issue request for this on the Nim Cookbook project @jzakiya; open a feature request ticket against the nim github repo?

Re: How to track down missing nimcache/read.o ?

2017-10-29 Thread wizzardx
Deleting the nimcache directory also works. "There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors." \- secretGeek

Re: How do you keep your motivation on your open-source projects

2017-10-29 Thread wizzardx
Just working on things when I feel like it or need to, for solving some other problem that I'm excited or motivated about

Re: Send data structures between threads?

2017-10-29 Thread wizzardx
I don't understand it, but nice Have added an issue on the Nim Cookbook for this to be added there.

Re: Winim Excel

2017-10-29 Thread alfrednewman
One of the ways you feel motivated is to live in a community thanks guys