RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.25.0 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei_ has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
snsei has joined #crystal-lang
lvmbdv has quit [Quit: Leaving.]
<FromGitter> <sam0x17> I've noticed that when running crystal spec, Array.sample is using the same random seed with each spec.. is there a way to reseed this in `before_each`?
zachk has quit [Quit: Leaving]
<FromGitter> <aisrael> ```random = Random.new(seed) ⏎ array.sample(n, random)``` [https://gitter.im/crystal-lang/crystal?at=5b32e5a1479ca26689827f88]
<FromGitter> <sam0x17> haha @girng small world
<FromGitter> <girng> don't know sorry man, aisrael might :O
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
wontruefree has joined #crystal-lang
DTZUZO has quit [Quit: WeeChat 2.0]
DTZUZO has joined #crystal-lang
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZO has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
snsei has joined #crystal-lang
return0e has quit [Ping timeout: 240 seconds]
return0e has joined #crystal-lang
jcs has joined #crystal-lang
rohitpaulk has joined #crystal-lang
tilpner has quit [Ping timeout: 265 seconds]
tilpner has joined #crystal-lang
<FromGitter> <bararchy> Anyone working on https://grpc.io/ support for Crystal?
wontruefree has quit [Quit: bye]
<FromGitter> <bcardiff> No that I am aware of, but would like to see it. It could open another integration point with other languages.
<FromGitter> <Grabli66> Fiber schedule blocks something?
<FromGitter> <rishavs> same error
<FromGitter> <Grabli66> @bcardiff Maybe, there are be a time to implement shared memory between threads? 😄
<FromGitter> <rishavs> thank you @bcardiff Gonna check out the properties and ivar
<crystal-gh> [crystal] sdogruyol closed pull request #6272: Add Time::Span#microseconds, Int#microseconds and Float#microseconds (master...feature/6270-time-span-microseconds) https://git.io/f4QiQ
<crystal-gh> [crystal] ysbaddaden opened pull request #6277: Fix: generic Socket#accept? is broken (master...fix/broken-socket-accept) https://git.io/f45c0
<crystal-gh> [crystal] ysbaddaden closed pull request #6250: Thread.allocate_stack: Pass MAP_STACK to mmap() on OpenBSD 6.3+ (master...master) https://git.io/f4SGf
<crystal-gh> [crystal] ysbaddaden pushed 1 new commit to master: https://git.io/f45Cn
<crystal-gh> crystal/master c9f449c joshua stein: Thread.allocate_stack: Pass MAP_STACK to mmap() on OpenBSD 6.3+
tilpner has quit [Remote host closed the connection]
tilpner has joined #crystal-lang
<FromGitter> <sdogruyol> 💪
<crystal-gh> [crystal] sdogruyol pushed 1 new commit to master: https://git.io/f458B
<crystal-gh> crystal/master 4a18335 Ary Borenszweig: Require "big" if requiring any "big" file (#6267)
<travis-ci> crystal-lang/crystal#e554a96 (master - Add Time::Span#microseconds, Int#microseconds and Float#microseconds (#6272)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/397240603
<DeBot> https://github.com/crystal-lang/crystal/pull/6272 (Add Time::Span#microseconds, Int#microseconds and Float#microseconds)
<FromGitter> <Grabli66> But. I think, crystal require more aggressive marketing, to attract more language developers. Without it we will wait new features for years. 😄
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
<FromGitter> <Grabli66> Yes, you are right. It's sad 😟
<FromGitter> <fgimian> hola folks 😄
jokke has quit [Ping timeout: 256 seconds]
jokke1 has quit [Ping timeout: 260 seconds]
<FromGitter> <sdogruyol> Hey @fgimian 👋
jokke has joined #crystal-lang
<travis-ci> crystal-lang/crystal#c9f449c (master - Thread.allocate_stack: Pass MAP_STACK to mmap() on OpenBSD 6.3+): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/397244935
<FromGitter> <fgimian> Hey @sdogruyol, how's it going mate? 😄
jokke1 has joined #crystal-lang
alex`` has joined #crystal-lang
flaviodesousa has joined #crystal-lang
lvmbdv has joined #crystal-lang
<FromGitter> <Manu-sh> hi
<travis-ci> crystal-lang/crystal#4a18335 (master - Require "big" if requiring any "big" file (#6267)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/397251370
<DeBot> https://github.com/crystal-lang/crystal/pull/6267 (Require "big" if requiring any "big" file)
<FromGitter> <Manu-sh> i should write a things like that: ⏎ `char _f[20-2*sizeof(long)-sizeof(int)];` ⏎ i had try with: ⏎ ` _f : StaticArray(LibC::Char, 20-2*sizeif(LibC::Long) - sizeof(LibC::Int)) ` ⏎ but it dosn't work (i think that the reason is that this expr. is evaluated at runtime) ... [https://gitter.im/crystal-lang/crystal?at=5b335abe960fcd4eb9273f5e]
<jokke> oh my god what's happened?
<FromGitter> <yxhuvud> @jokke
<jokke> last time i checked crystal was on top and like the first 5 frameworks were crystal
<jokke> now something like rack-routing is faster than any crystal framework??
<FromGitter> <yxhuvud> I'm not certain if anyone has dug into the reasons as to why it is so slow. @bcardiff is this something that you have seen?
<travis-ci> crystal-lang/crystal#4a18335 (ci/build - Require "big" if requiring any "big" file (#6267)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/397257300
<DeBot> https://github.com/crystal-lang/crystal/pull/6267 (Require "big" if requiring any "big" file)
<FromGitter> <j8r> @yxhuvud @jokker this is because they have switched to multi thread, but crystal still use only one core https://github.com/tbrand/which_is_the_fastest/issues/250
<jokke> ahh
<jokke> dang
<jokke> so how's native multithreading doing? :D
<FromGitter> <Manu-sh> any solution ? ⏎ ⏎ > i should write a things like that: ⏎ `char _f[20-2*sizeof(long)-sizeof(int)];` ⏎ i had try with: ... [https://gitter.im/crystal-lang/crystal?at=5b335f7cbe98b142240ce3d4]
<jokke> j8r: it's kinda unfair though since puma also just forks workers...
<jokke> you could easily just fork the crystal program and make use of port reusing
<crystal-gh> [crystal] bcardiff opened pull request #6278: Release 0.25.1 (master...changelog/0.25.1) https://git.io/f45wL
<FromGitter> <Grabli66> Release is comming 😄
<FromGitter> <RX14> we shouldn't be doing breaking changes in "patch" releases even before 1.0 imo
<FromGitter> <bcardiff> I agree :-)
<FromGitter> <RX14> so cherry pick some commits to 0.25.2?
<FromGitter> <bcardiff> could be
alex`` has quit [Quit: WeeChat 2.1]
<FromGitter> <bendietze_twitter> If cherrys please #6272 😄
<DeBot> https://github.com/crystal-lang/crystal/pull/6272 (Add Time::Span#microseconds, Int#microseconds and Float#microseconds)
<FromGitter> <bendietze_twitter> The Bot is someone really funny
jfo_test has joined #crystal-lang
jfo_test has quit [Client Quit]
rocx has quit [Remote host closed the connection]
<FromGitter> <codenoid> hi
<FromGitter> <Grabli66> I think there are many who don't understand the question.
<FromGitter> <codenoid> plz gimme a example,
<FromGitter> <j8r> or ``echo hi``
<crystal-gh> [crystal] sdogruyol closed pull request #6259: Docs: Update man page with new options (#5554) (master...master) https://git.io/f49gp
<FromGitter> <codenoid> yeah, datanoise has ssh2 library
jokke1 has quit [Ping timeout: 256 seconds]
jokke1 has joined #crystal-lang
<travis-ci> crystal-lang/crystal#b6ef064 (master - Docs: Update man page with new options (#5554) (#6259)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/397309328
<DeBot> https://github.com/crystal-lang/crystal/issues/5554 (Update man page with new options) | https://github.com/crystal-lang/crystal/pull/6259 (Docs: Update man page with new options (#5554))
<FromGitter> <bcardiff> @bendietze_twitter that PR will be in 0.25.1
duane has joined #crystal-lang
<crystal-gh> [crystal] r00ster91 opened pull request #6280: Prevent link duplicates in "Defined in:" section (master...patch-1) https://git.io/f45QG
<FromGitter> <bendietze_twitter> @bcardiff very nice - thank you 🎉
<FromGitter> <asterite> @hugoabonizio it's an optimization because it was using callbacks, and the callbacks referred to local variables, so they were closured and thus allocated on the heap. Using a struct with the needed arguments is faster because nothing is allocated on the heap.
<FromGitter> <hugoabonizio> I understand, thanks for the explanation!
<FromGitter> <bararchy> Hmmmmm
<FromGitter> <bararchy> Any idea on an optimization we could use @asterite ;)
prutheus has joined #crystal-lang
<prutheus> Hello. I have a question about amber framework...
<prutheus> Is it possible to have multiple WebSocket::Channels connected to one Websocket? I have defiend multiple channels and wanted to connect them into one socket by putting for each channel at the socket: channel "name", NameChannel at the first line in the class channels: https://bpaste.net/show/2592b0163a2f and https://bpaste.net/show/23a9c9e7da84 .... and socket: https://bpaste.net/show/67a875b08af8
<prutheus> I have the problem that when i wanna join both channels I just join the data channel, doesnt matter if my websocket client has the topic 'calculation
<prutheus> I only get my client connected to the channel which comes first in my socket, but the topic is 'calculation', in my data channel i receive at the joined function a message with the topic 'calculation' should this not be not possible?
<prutheus> anyone an idea?
<FromGitter> <asterite> @bararchy hehe, I don't know. You'll have to benchmark it and see where the bottlenecks are
<FromGitter> <bararchy> @asterite not everyone got a Mac with `profile` installed :)
snsei has quit [Quit: WeeChat 1.6]
<FromGitter> <asterite> Right, yeah. There's no solution for that yet
<FromGitter> <bararchy> Yeha I know, that's why I ping @bcardiff bi-weekly for status report hahahhahaahaha
<FromGitter> <bararchy> In the end its just another core doing x + y or x * y
<FromGitter> <j8r> Slack is down https://status.slack.com/2018-06/142edcb9e52c7663 - gitter has issues, sure, but switching to an other service will also bring others 😏
willamin_ has joined #crystal-lang
willamin_ has quit [Client Quit]
rohitpaulk has quit [Ping timeout: 276 seconds]
pwned has joined #crystal-lang
ua has joined #crystal-lang
ua_ has quit [Ping timeout: 268 seconds]
wontruefree has joined #crystal-lang
<oz> As long as there's an IRC bridge, I'm fine. :P
wontruefree has quit [Quit: bye]
<FromGitter> <asterite> Slack is superior in every way, I wish we'd use Slack
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
<FromGitter> <j8r> If you want to buy something, please go with https://rocket.chat/
<crystal-gh> [crystal] asterite closed pull request #6273: Remove singular names like Int#day, Int#month, etc. (master...refactor/remove-time-span-nodoc-methods) https://git.io/f4QPe
<oprypin> i made a fix to the bridge bot, which is not strictly related to streaming, but seems like it's helping already https://github.com/oprypin/critter/commit/f53bb9d7e30514a7801f3342a4d46a144b476bcd
wontruefree has joined #crystal-lang
<FromGitter> <RX14> test
<FromGitter> <RX14> test
<FromGitter> <RX14> test
<FromGitter> <RX14> test
<FromGitter> <RX14> test
<RX14> wow
<RX14> all 5
<RX14> guess it's fixedish?
akaiiro has joined #crystal-lang
<wontruefree> hopefully it is fixed
pwned has quit [Ping timeout: 276 seconds]
pwned has joined #crystal-lang
akaiiro has quit [Ping timeout: 245 seconds]
zachk has joined #crystal-lang
zachk has joined #crystal-lang
<crystal-gh> [crystal] bcardiff closed pull request #6278: Release 0.25.1 (master...changelog/0.25.1) https://git.io/f45wL
wontruefree has quit [Quit: this is not the client you are looking for]
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 256 seconds]
akaiiro has joined #crystal-lang
return0e_ has quit [Read error: No route to host]
return0e has joined #crystal-lang
<travis-ci> crystal-lang/crystal#b782738 (master - Release 0.25.1 (#6278)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/397456370
<FromGitter> <jspillers> HI everyone... just installed crystal on a mac via homebrew to start playing around with the language and im getting compiler errors when i try to run a simple `crystal hello_world.cr` ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ as far as i can tell, libgc is installed... [https://gitter.im/crystal-lang/crystal?at=5b33d81072b31d3691f8ec99]
<FromGitter> <asterite> do you have homebrew installed with the default paths?
<FromGitter> <jspillers> yes
<FromGitter> <asterite> then I don't know, it should work. Maybe try `brew install bdw-gc` or `brew link bdw-gc`
<FromGitter> <jspillers> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b33d91859799e7017473550]
<FromGitter> <jspillers> ok ill try that
lvmbdv has quit [Quit: Leaving.]
<FromGitter> <jspillers> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b33d980ad21887018e3b452]
<oprypin> jspillers, `which crystal` ?
<oprypin> nvm it doesnt matter
<oprypin> presumably the libs need to be accessible under some kind of global path
<oprypin> when you were following the setup for homebrew, did you add those? something referencing LIBRARY_PATH perhaps?
<FromGitter> <asterite> what's your output for ` brew --prefix` ?
<FromGitter> <jspillers> i followed the directions here: https://crystal-lang.org/docs/installation/on_mac_osx_using_homebrew.html
<FromGitter> <jspillers> ok... will give that output in one moment... i am attempting a brew reinstall after making sure all dependent libs were installed
<oprypin> jspillers, im talking about instructions for homebrew itself.
<FromGitter> <asterite> for me it's `/usr/local`
<FromGitter> <asterite> I don't have `/usr/local/homebrew`
<FromGitter> <jspillers> i see - that could be my problem
<FromGitter> <asterite> if that's the case, you are out of luck. Crystal for homebrew doesn't work if you don't have a default homebrew installation
<FromGitter> <jspillers> ```/usr/local/homebrew``````
<FromGitter> <jspillers> afaik this is/was a standard brew prefix
<FromGitter> <jspillers> maybe that changed recently
<FromGitter> <jspillers> i definitely did not specify any changes when installing homebrew
<oprypin> you must have
<FromGitter> <jspillers> i did not
<FromGitter> <asterite> strange... maybe that's a recent change. I have homebrew installed for a few months now, maybe a year
<FromGitter> <asterite> Here's the issue, in case you are interested: https://github.com/crystal-lang/crystal/issues/3067
pwned has quit [Ping timeout: 260 seconds]
jsn-_ is now known as jsn-
Groogy has joined #crystal-lang
<FromGitter> <jspillers> so basically... everything is hard coded to specific paths and if you dont have exactly those paths then prepare for hours of pain just getting hello_world.cr to compile
<FromGitter> <jspillers> awesome
<FromGitter> <fridgerator> 🍠
<RX14> it's not hard-coded
<RX14> it just expects the correct environment variables to be set
<RX14> and homebrew doesn't do that
<RX14> it's a bug in the homebrew package, an issue should be opened on the homebrew repo
<FromGitter> <jspillers> `crystal hello_world.cr --link-flags -L$(brew --prefix)/lib` works
<FromGitter> <jspillers> but quite annoying to have to append everytime i run the compiler
<RX14> and setting LIBRARY_PATH=$(brew --prefix)/lib:$LIBRARY_PATH should work too
<FromGitter> <jspillers> im assuming in my .zshrc ^?
<RX14> test it in your shell
<RX14> then if it works, yeah
<RX14> then make an issue on homebrew for them to do the same, if you're feeling helpful
<RX14> I don't use a mac so I can't really
<FromGitter> <jspillers> library path didn't do the trick: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b33e134ce3b0f268d48a973]
<RX14> you need to export it
<FromGitter> <jspillers> bingo
<FromGitter> <jspillers> thanks
<FromGitter> <Manu-sh> @fgimian @fgimian
return0e has quit [Read error: No route to host]
return0e has joined #crystal-lang
hightower2 has joined #crystal-lang
oprypin has quit [Quit: Bye]
oprypin has joined #crystal-lang
prutheus has quit [Quit: Page closed]
<FromGitter> <straight-shoota> @RX14 Did you solve the linker error `error LNK2019: unresolved external symbol __imp_strncmp referenced in function check_posix_name` on windows?
<RX14> yeah
<RX14> dont remember now
<RX14> i think it was compiling one of the dependencies wrong
<RX14> /MD vs /MT or sth
DTZUZO has quit [Ping timeout: 256 seconds]
<FromGitter> <straight-shoota> too bad