leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sferik has joined #crystal-lang
sandelius has joined #crystal-lang
ponga has joined #crystal-lang
ponga has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has joined #crystal-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ponga has joined #crystal-lang
a5i has joined #crystal-lang
Ven has joined #crystal-lang
JuryBatenko has joined #crystal-lang
ponga has quit [Remote host closed the connection]
ponga has joined #crystal-lang
Cassyblanca has quit [Read error: Connection reset by peer]
panga has joined #crystal-lang
panga has quit [Remote host closed the connection]
panga has joined #crystal-lang
panga has quit [Remote host closed the connection]
a5i has quit [Quit: Connection closed for inactivity]
sandelius has quit [Read error: Connection reset by peer]
a5i has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
panga has joined #crystal-lang
panga has quit [Ping timeout: 245 seconds]
bcardiff has joined #crystal-lang
asterite has joined #crystal-lang
<a5i>
is Crystal going to be supporting Async?
<djellemah>
asterite: Thanks for your answers yesterday. How does crystal do concurrency - libpcl coroutines scheduled on top of libpthread threads?
<asterite>
In 0.6.1 concurrency is just Threads + Fiber if you want to use them, but they are not very useful like that
<asterite>
In HEAD concurrency is about non-blocking IO, lightweight processes similar to Go's goroutines and channels for communications between them
<asterite>
So, it'll be very, very similar to Go in that sense
<asterite>
So Crystal is not going to support async/await like in C#
<djellemah>
I don't know c# - is await same as block/wakeup using ConditionVariable?
<djellemah>
ok, nevermind. Just read the docs. Looks like futures.
<asterite>
I don't know much about them either... I think Nim has them too, but implemented via macros
<a5i>
Is Crystal a scripting language?
ponga has quit [Quit: Connection closed for inactivity]
<asterite>
Define scripting language :-)
<a5i>
err
<a5i>
I don't know exactly how, so that's why I'm asking
<asterite>
The definition of wikipedia made me more confused :-)
<a5i>
Idk if compilation has to do anything with it
<a5i>
Ruby is a scripting language
<a5i>
question is if Crystal chnaged anything about that
<a5i>
ofc compilation, static types
<asterite>
Well, if you do `crystal program.cr` then `program.cr` will be compiled and run
<asterite>
but you don't have to know that, you can think that `crystal` just interprets the program
<asterite>
so crystal can be used as if it were a scripting language
<asterite>
Mmm... you can write small scripts in it :-)
<jhass>
yeah, I don't think scripting language is a useful distinction
<jhass>
interpreted, just-intime-, compiled are more useful perhaps
<djellemah>
a5i: These days the scripting language vs compiled language distinction is a lot less useful. Many newer languages' compile step is so fast that it doesn't get in the way. And languages that used to be 'interpreted' are now running on VMs with JITs, so effectively they're compiled anyway.
<a5i>
Crystal is AOT
<a5i>
right
<jhass>
!g AOT
<DeBot>
[]: No results found!
<jhass>
heh!
<jhass>
looks like it's broken again
<a5i>
Google?
<jhass>
yeah
<a5i>
o
<a5i>
We need to port nokogiri to Crystal
<jhass>
time
<jhass>
asterite started with that actually, it's in stdlib under xml/
<asterite>
Yes, although I found nokogiri does some real magic
<asterite>
Like... it has a CSS parser in it
<asterite>
And porting it I realized that when you do node.search("foo") nokogiri might actually borrow your entire computer for that task
<asterite>
Like when you open an innocent Ruby method source code that's written in C and you find yourself looking at 100 lines :-P
<a5i>
lol
<djellemah>
I'm looking at channel.cr - looks to me that it would work with Fibers, but wouldn't be threadsafe. Am I missing the obvious?
<jhass>
wait, the css parser is not libxml2 API?
<a5i>
asterite, is the HEAD version basically the next version of crystal?
<asterite>
Yes
<jhass>
asterite: might be easier to port oga then :P