jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<asterite> RX14: BlaXpirit: no need to report it https://github.com/crystal-lang/crystal/issues/3093 :-)
<asterite> (incredible, it's almost 100% the same code)
vikaton has quit [Quit: Connection closed for inactivity]
pduncan has joined #crystal-lang
Philpax has joined #crystal-lang
ome has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
pduncan has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
Philpax_ has quit [Read error: Connection reset by peer]
vikaton has joined #crystal-lang
bjz has joined #crystal-lang
Philpax has joined #crystal-lang
qard has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
ponga has joined #crystal-lang
_jaitaiwan has joined #crystal-lang
soveran has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 240 seconds]
_jaitaiwan has quit [Quit: Page closed]
bew78 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
_jaitaiwan has joined #crystal-lang
<_jaitaiwan> Hey guys. If I have a slice of Uint8 how can I write this to a file? I am completely at a loss at how one does this
pawnbox has quit [Remote host closed the connection]
akwiatkowski has joined #crystal-lang
pawnbox has joined #crystal-lang
_jaitaiwan has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
asterite has quit [Ping timeout: 252 seconds]
asterite has joined #crystal-lang
mark_66 has joined #crystal-lang
<BlaXpirit> _jaitaiwan, Instance methods inherited from module IO::Buffered https://crystal-lang.org/api/0.19.1/IO/Buffered.html#write%28slice%3ASlice%28UInt8%29%29-instance-method
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
bjz_ has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
willl has quit [Quit: Connection closed for inactivity]
_jaitaiwan has joined #crystal-lang
<_jaitaiwan> I'll take a look thanks BlaXpirit
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
_jaitaiwan has quit [Quit: Page closed]
pawnbox has joined #crystal-lang
HollyRain has joined #crystal-lang
<HollyRain> does crystal can generate C code to be able to used from other language? I would want to create a library to be used from other languages
<BlaXpirit> HollyRain, it does not generate C code but can export symbols in the same binary interface as C
<HollyRain> is easy to bind from other languages?
<HollyRain> which are the Crystal's features?
pawnbox has quit [Remote host closed the connection]
<HollyRain> BlaXpirit, I was reading before, but I only found section "Language Goals"
<HollyRain> different to features
<HollyRain> anyway the documentation is great
<HollyRain> how is it compared versus nim?
<BlaXpirit> it's not full of stupid design decisions
<BlaXpirit> it actually has namespaces :O
<BlaXpirit> regarding design decisions, crystal actually has a lot of thought put into its design and everything just feels right
<BlaXpirit> Nim's standard library is completely chaotic and shortsighted
pawnbox has joined #crystal-lang
<HollyRain> then the great advantage of nim is to create libraries which can be used from other languages (C binding)
soveran has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<BlaXpirit> HollyRain, the situation with that is not much better in Nim. garbage collection ruins everything just the same way
pawnbox has joined #crystal-lang
<HollyRain> I though that I could use Nim or Crystal to create a library to be able to be binded from different languages but it looks that I was wrong
<BlaXpirit> HollyRain, you can but it's problematic, mainly because everything relies on garbage collection
<HollyRain> thanks!
<HollyRain> does crystal is single-threaded?
<BlaXpirit> HollyRain, at the moment yes. concurrency is still possible within one thread. there are plans to run in a thread pool. overall, the model is similar to Go programming language.
akwiatkowski has quit [Ping timeout: 244 seconds]
jamie-discord1 has quit [Read error: Connection reset by peer]
jamie_ca has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Philpax has joined #crystal-lang
akwiatkowski has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 250 seconds]
DeBot has quit [Ping timeout: 260 seconds]
jhass has quit [Ping timeout: 255 seconds]
asterite has quit [Ping timeout: 265 seconds]
asterite has joined #crystal-lang
jhass has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
mark_66 has quit [Quit: Leaving.]
mkl0501 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<Val> Hi, I have some JSON/YAML serialization problems. I made a gist: https://gist.github.com/Val/53085262b19932f686b8c84a760454cb . Should I post an issue (may be two?) or It is a bug in my code ?
<Yxhuvud> Hmm, doen't Thread.new create an actual thread? I thought that the part that didn't work well yet was the interaction between threads and channels?
<BlaXpirit> Yxhuvud, sure it creates a thread
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <cjgajard> Val, the problem in your code is float precision loss in JSON load/dump ...
<Val> FromGitter: ok for the JSON serialization problem, I spotted this cause too. But is it a way to handle float JSON serialization/deserialization correctly ?
<FromGitter> Val, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/crystal-lang/crystal
<Val> ...
* Val too lame to read the nick
HollyRain has quit [Quit: Leaving]
<FromGitter> <Val> Thx
<FromGitter> <Val> And for the YAML parse error, is-it the same precision problem ?
balduin has quit [Ping timeout: 244 seconds]
sfcgeorge has joined #crystal-lang
<FromGitter> <cjgajard> I don't get an YAML error :-/ ... which is your `crystal --version`?
<FromGitter> <Val> `Crystal 0.19.1 [798b2e2] (2016-09-09)` (the `Debian` package)
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <Val> It's not very practical to use a `String::RawConverter` every time a float is serialized :-/
sfcgeorge has quit [Quit: Textual IRC Client: www.textualapp.com]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
qard has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Davy_CC has quit [Ping timeout: 244 seconds]
Davy_CC has joined #crystal-lang
balduin has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
nicho has joined #crystal-lang
<nicho> Hello, I have a quick question about sockets
<nicho> How do we allow crystal to be able to send messages to a web socket and receive when a response is generated?
<nicho> For example: crystal sends command1 to the server
<nicho> Crystal sends command2 to the server
<nicho> The server responds to command 2
<nicho> Crystal receives the response for command 2
<nicho> .
<nicho> I'm having trouble spawning fibers that don't block when the server does not respond to command 1
nicho has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ponga has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
qard_ has joined #crystal-lang
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
qard has quit [Ping timeout: 265 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
qard_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qard has joined #crystal-lang
DeBot has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
asterite has quit [Ping timeout: 240 seconds]
jhass has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
asterite has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
jhass has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
willl has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sfcgeorge has joined #crystal-lang
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qard has joined #crystal-lang
soveran has quit [Remote host closed the connection]
perks has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
sfcgeorge has quit [Quit: Textual IRC Client: www.textualapp.com]
balduin has quit [Ping timeout: 276 seconds]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
akwiatkowski has quit [Ping timeout: 244 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
<jwaldrip> if x as T is deprecated, how does one typecast a union type?