meh / nucular Goto Github PK
View Code? Open in Web Editor NEWA reactor in D.
A reactor in D.
(gdb) bt
#0 0x00000007 in ?? ()
#1 0x2831dfea in pthread_sigmask () from /lib/libthr.so.3
#2 0x2831e165 in pthread_sigmask () from /lib/libthr.so.3
#3 <signal handler called>
#4 0x283ddd8b in poll () from /lib/libc.so.7
#5 0x2831c0f2 in poll () from /lib/libthr.so.3
#6 0x08074d72 in _D7nucular8selector4poll8Selector24__T4pollVAyaa4_72656164Z4pollMFiZv (this=0x28484fc0, timeout=-1) at nucular/selector/poll.d:161
#7 0x08074ec6 in _D7nucular8selector4poll8Selector29__T9availableVAyaa4_72656164Z9availableMFZS7nucular8selector4base8Selected (this=0x28484fc0, __HID15=0xbfbfe604) at nucular/selector/poll.d:79
#8 0x0806da71 in _D7nucular7reactor7Reactor3runMFDFZvZv (this=0x28481f00, block=577789048924946400) at nucular/reactor.d:112
#9 0x08070d81 in _D7nucular7reactor3runFDFZvZv (block=577789048924946400) at nucular/reactor.d:882
#10 0x0804b80c in _Dmain (args=2918614377110175745) at examples/receive.d:72
#11 0x080c88f0 in _D2rt6dmain24mainUiPPaZi7runMainMFZv ()
#12 0x080c8400 in _D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv ()
#13 0x080c8932 in _D2rt6dmain24mainUiPPaZi6runAllMFZv ()
#14 0x080c8400 in _D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv ()
#15 0x080c83b3 in main ()
As the title states.
As the title states.
10:46:17 > well std.concurrency has a lot of message passing stuff
10:46:23 > it's easy if you use that
10:46:58 > and probably quite obvious once you read about it (std.concurrency has a pretty simple interface really)
10:47:47 < so I'd keep a mailbox in the reactor
10:48:06 < sounds good
10:49:43 > yeah the mailbox stuff is pretty easy to get the hang of
Hi @meh , i try nucular, but show some errors:
nucular\uri.d(347): Error: assignment cannot be used as a condition, perhaps == was meant?
nucular\protocols\dns\resolver.d(51): Error: function nucular.protocols.dns.resolver.UnresolvedAddress.toPortString does not override any function, did you mean to override 'std.socket.Address.toPortString'?
nucular\selector\best.d(75): Error: version select defined after use
nucular\protocols\http\parser.d(25): Error: module grammar is in file 'nucular\protocols\http\grammar.d' which cannot be read
nucular\threadpool.d(152): Error: module nucular.threadpool struct std.parallelism.AbstractTask is private
nucular\reactor.d(866): Error: undefined identifier Selector, did you mean function selector?
nucular\descriptor.d(31): Error: static assert (0) is false
nucular\protocols\http\client.d(50): Deprecation: this is not an lvalue
nucular\protocols\http\parser.d(101): Error: undefined identifier Grammar, did you mean template grammar(Memoization withMemo = Memoization.yes)(string definition)?
thanks :)
my dmd version: 2.067
That will reduce overload creeping and make the signature simpler.
It could be useful to improve speed of certain protocols.
It happens randomly and doesn't happen in GDB, must investigate further.
Still don't know why.
The breaker shouldn't be put in the write part, otherwise it will break the waiting. It should always be in the reading.
More speed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.