GithubHelp home page GithubHelp logo

nucular's People

Contributors

meh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nucular's Issues

Segfault on quit on FreeBSD.

(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 ()

Add a MailBox to the reactor.

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

When compile show errors ..

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

Fix the selectors.

The breaker shouldn't be put in the write part, otherwise it will break the waiting. It should always be in the reading.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.