ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.1 | 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
hightower2 has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
sp4rrow has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter> <faustinoaq> Hi, How does `[1,2,4,5].select(&.even?)` work? ⏎ ⏎ I know that `[1,2,4,5]` is an array, also that `select` and `even?` are methods but... ⏎ ⏎ `select(&.even?)` What I'm doing here, is `&` any kind of block of something? [https://gitter.im/crystal-lang/crystal?at=59b34ea84e50cfde271cae55]
<FromGitter> <ezrast> It's just shorthand for `select {|obj| obj.even?}`
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <faustinoaq> @ezrast Oh, is a bit confusing, so `select(&.even?)` is passing an block as argument in a shorter way.
<FromGitter> <ezrast> Yes, pure syntactic sugar according to https://crystal-lang.org/docs/syntax_and_semantics/blocks_and_procs.html
weston has joined #crystal-lang
weston has quit [Changing host]
weston has joined #crystal-lang
weston has quit [Ping timeout: 248 seconds]
weston has joined #crystal-lang
weston has quit [Ping timeout: 248 seconds]
weston has joined #crystal-lang
weston has quit [Ping timeout: 240 seconds]
weston has joined #crystal-lang
ShalokShalom has joined #crystal-lang
harindu95 has joined #crystal-lang
weston has quit [Ping timeout: 240 seconds]
alex`` has joined #crystal-lang
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
harindu95 has quit [Quit: harindu95]
alex`` has quit [Client Quit]
crst has quit [Quit: Leaving...]
weston has joined #crystal-lang
rohitpaulk has joined #crystal-lang
_whitelogger has joined #crystal-lang
rumenzu has joined #crystal-lang
weston has quit [Ping timeout: 252 seconds]
sp4rrow has quit [Quit: Textual]
<FromGitter> <opensas> hi everyone, I'm trying to format a json string, I saw the JSON::PrettyWriter class but couldn't figure how to use it, can someone provide and example? some simple thing like ```puts JSON::PrettyWriter.new(%({"name": "John", "age": 23}), " ")```
<FromGitter> <bararchy> JSON.parse()
<FromGitter> <bararchy> Oh , you want to format
<FromGitter> <opensas> right!
<FromGitter> <bararchy> How about parse.pretty_print
<FromGitter> <opensas> didn't know about it
<FromGitter> <bararchy> Do we have .to_json on Hash ?
claudiuinberlin has joined #crystal-lang
<FromGitter> <opensas> seems so http://devdocs.io/crystal/api/0.23.0/hash#to_json%28json%3AJSON%3A%3ABuilder%29-instance-method
<FromGitter> <opensas> JSON.parse(json_string).to_json normalizes the string (removes spaces and CR/LF) but it won't format the json ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ https://play.crystal-lang.org/#/r/2ovc [https://gitter.im/crystal-lang/crystal?at=59b393adbc4647297411569a]
<FromGitter> <opensas> I guess JSON::PrettyWriter should have something to do with it, but I can't figure out how to use it: https://github.com/crystal-lang/crystal/blob/798b2e228718d2c405d1a9f8c55e16a651d37fee/src/json/to_json.cr#L116
<FromGitter> <drosehn> is that used by the `pp` command?
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
<FromGitter> <opensas> Maybe that's what it is doing, instead of pretty formating the json
<FromGitter> <opensas> I found how to do it, there's a to_pretty_json method
<FromGitter> <bararchy> Cool
<FromGitter> <opensas> in fact, you don't even have to parse it, the following will do just fine ⏎ ⏎ ```puts %({"name":"John","age":23,"arr":[1,2,3]}).to_pretty_json``` ⏎ ⏎ crystal rocks!!! [https://gitter.im/crystal-lang/crystal?at=59b39785614889d475d851b0]
<crystal-gh> [crystal] ysbaddaden closed pull request #4396: Drop LLVM 3.5 and LLVM 3.6 support (master...drop-llvm-35-and-36-support) https://git.io/v9XFi
<FromGitter> <opensas> Now anybody knows how to print to LF in the console??? this is what I get when I execute on the bash console ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=59b3984bb59d55b823d5c876]
A124 has quit [Read error: No route to host]
<FromGitter> <opensas> Now anybody knows how to print to LF in the console??? this is what I get when I execute on the bash console ⏎ ⏎ ```$ crystal rand.cr "{\"name\":\"John\",\"age\":23,\"arr\":[1,2,3]}"``` [https://gitter.im/crystal-lang/crystal?at=59b3988aee5c9a4c5f4c0a59]
A124 has joined #crystal-lang
_whitelogger has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<oprypin> ?
rohitpaulk has joined #crystal-lang
<FromGitter> <kyku> Hi, is there some IDE / editor for Crystal which supports navigating around code and finding symbol usage?
<FromGitter> <opensas> I mean, the output of running ```crystal rand.cr``` is ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=59b3a487ee5c9a4c5f4c3610]
<FromGitter> <kyku> @opensas : https://play.crystal-lang.org/#/r/2ow6
<FromGitter> <opensas> yeap, it doesn't work on plain string, I have to parse it to get a JSON::Any and then I can go with to_pretty_json: ⏎ ⏎ `````` [https://gitter.im/crystal-lang/crystal?at=59b3a598bc464729741190cd]
<FromGitter> <kyku> it works on plain string, it just does what you ask for: print me this string encoded as JSON
<FromGitter> <opensas> Now I get it... I'm a bit asleep...I guess it's time to go to bed
<FromGitter> <opensas> thanks!
<FromGitter> <ansarizafar> I am trying to compile on ubuntu 16.04 but getting this error.
<FromGitter> <ansarizafar> Can anyone help
<oprypin> ansarizafar, what is not clear? you didn't install dependencies
<FromGitter> <sdogruyol> Morning everyone
hightower2 has joined #crystal-lang
<andrewzah> also in your compose files; if I try to set ports manually with the ip, it fails on docker-compose up. ```cr ports:
<andrewzah> - "163.172.10.62:6697:6697"
<andrewzah> ```
<andrewzah> oops
<FromGitter> <sdogruyol> :)
snsei_ has quit [Remote host closed the connection]
rumenzu has quit []
bmcginty has quit [Ping timeout: 248 seconds]
bmcginty has joined #crystal-lang
<FromGitter> <faustinoaq> > Hi, is there some IDE / editor for Crystal which supports navigating around code and finding symbol usage? ⏎ ⏎ Something like this 👇 ⏎ ⏎ ((https://i.imgur.com/6cqcXD3.gif)) ... [https://gitter.im/crystal-lang/crystal?at=59b3bd54bc4647297411e468]
<FromGitter> <Qwerp-Derp> @faustinoaq Can you add support for finding the definition of a symbol, like with other language plugins in VSCode?
<FromGitter> <Qwerp-Derp> So for example, in this code: ⏎ ⏎ ```def foo ⏎ Bar::Baz(10) ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=59b3bf86162adb6d2e832396]
<FromGitter> <Qwerp-Derp> If I go to `Bar` and right-click, and select "Peek definition", it should bring me to where `Bar` is
<FromGitter> <kyku> @faustinoaq : I'm gonna give it a try, thanks for the suggestion
<FromGitter> <Qwerp-Derp> Is anyone willing to clean up my Crystal code? :P
<FromGitter> <Qwerp-Derp> I'm guessing no, but it's worth a shot
<FromGitter> <sdogruyol> 👍
ShalokShalom_ has joined #crystal-lang
<FromGitter> <Qwerp-Derp> @sdogruyol Is that a yes to my request thing?
<FromGitter> <sdogruyol> unfortunately nope, I'd like to help but don't have the time :/
<FromGitter> <sdogruyol> I liked the idea though
<FromGitter> <sdogruyol> :D
ShalokShalom has quit [Ping timeout: 252 seconds]
<FromGitter> <Qwerp-Derp> Oh :P
ShalokShalom_ is now known as ShalokShalom
<FromGitter> <kyku> @faustinoaq : is your VSCode plugin supposed to work out of the box? Installed it but seem to only get syntax highlighting
<FromGitter> <faustinoaq> > Can you add support for finding the definition of a function/class/module/etc., like with other language plugins in VSCode? ⏎ ⏎ @Qwerp-Derp Yeah, I want too, but I'm currently limited to methods/macros because `crystal tool implementation` && `crystal tool expand` command [0] ⏎ ⏎ [0] - https://crystal-lang.org/2015/09/05/tools.html ... [https://gitter.im/c
<FromGitter> ... rystal-lang/crystal?at=59b3c363bc4647297411fc41]
andrewzah has quit [Ping timeout: 248 seconds]
<FromGitter> <faustinoaq> > is your VSCode plugin supposed to work out of the box? Installed it but seem to only get syntax highlighting ⏎ ⏎ @kyku The VScode plugin is still in development, so I disabled some unstable features by default. ⏎ ⏎ Features enabled by default: ... [https://gitter.im/crystal-lang/crystal?at=59b3c53e4e50cfde271e2e89]
<FromGitter> <krypton97> crystal-lib seems to have include issues with llvm-clang@4 ..
<FromGitter> <Qwerp-Derp> @faustinoaq Is there a way to somehow call shell commands using TypeScript to get the output of `crystal tool`?
<FromGitter> <Qwerp-Derp> It's a hacky method, but if it works it works
hightower2 has quit [Ping timeout: 240 seconds]
<FromGitter> <faustinoaq> Well, I guess you can use `tasks.json` [0] for that 😅 ⏎ ⏎ [0] - https://code.visualstudio.com/docs/editor/tasks ⏎ ⏎ I'm already calling many crystal commands [1] using TypeScript in a hackish way 😅 ... [https://gitter.im/crystal-lang/crystal?at=59b3cf42c101bc4e3aa774ca]
<FromGitter> <faustinoaq> But is still work in progress 😅
<FromGitter> <faustinoaq> However, if you want to try take a look 👉 https://github.com/crystal-lang-tools/vscode-crystal-lang/wiki/Settings#server
<FromGitter> <faustinoaq> Currently Scry supports: ⏎ ⏎ 1) formatting ⏎ 2) go to method definition ⏎ 3) live syntax checking (on type) ... [https://gitter.im/crystal-lang/crystal?at=59b3d02d4e50cfde271e51b3]
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <faustinoaq> > So to find class/modules I would need to implement this in my own from scratch. ⏎ > Maybe a need to open a issue about this ⏎ ⏎ Done #4941 [https://gitter.im/crystal-lang/crystal?at=59b3d599177fb9fe7e9d80bf]
rohitpaulk has joined #crystal-lang
<FromGitter> <codenoid> full tutorial @ansarizafar http://jihantoro.net/read/install-crystal-language-on-ubuntu
<FromGitter> <ansarizafar> @codenoid I have downgraded libssl with the aptitude command. Crystal compiler is now working. Thanks
<FromGitter> <faustinoaq> @codenoid 👍
hightower2 has joined #crystal-lang
Groogy has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
<Groogy> Heya! o/
<Papierkorb> Yo Groogy
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <sdogruyol> Hey
hightower2 has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
hightower2 has quit [Ping timeout: 248 seconds]
<claudiuinberlin> hello
<claudiuinberlin> How stable is now crystal?
<FromGitter> <sdogruyol> There are already some companies using it in production
<claudiuinberlin> great
<claudiuinberlin> there is any hard roadmap for 1
<claudiuinberlin> the amazing number `1` that will make user safe to adopt :)
<oprypin> that's not a roadmap for 1.0
<Groogy> oh nvm then, it cointains bunch of the stuff they want for 1.0 though
<oprypin> claudiuinberlin, here are plans and an unrealistic timeline for them https://crystal-lang.org/2016/12/29/crystal-new-year-resolutions-for-2017-1-0.html
<claudiuinberlin> thx!
<claudiuinberlin> <oprypin> best bet, 2018 first half
<oprypin> that's not a quote and i don't see where you took such a conclusion
<FromGitter> <sdogruyol> well
<FromGitter> <sdogruyol> we can omit Windows Support for 1.0 for now
hightower2 has joined #crystal-lang
<FromGitter> <sdogruyol> even though there are some great commits coming in lately about windows
<oprypin> sdogruyol, no. Windows support is almost as disruptive as concurrency
<FromGitter> <sdogruyol> you meant parallelism, right?
<oprypin> uh yeah
<FromGitter> <sdogruyol> well, I'm not saying that it's less important
<FromGitter> <sdogruyol> however it's not a road blocker like parallelism and can be done in a parallel manner
<FromGitter> <sdogruyol> and we have some good commits coming in lately for Windows
<oprypin> this is not about what's important, it's about what's likely to drag incompatible changes with it
<FromGitter> <sdogruyol> incompatible? You mean it's gonna break std?
<oprypin> yes. standard library has terribly many UNIX-specific APIs
<oprypin> Windows support will indirectly force these to be revised
<FromGitter> <sdogruyol> well, I agree with that however that doesn't it necessarily breaking
<crystal-gh> [crystal] RX14 opened pull request #4942: Remove travis OSX build (master...bugfix/remove-travis-osx) https://git.io/v565r
rohitpaulk has joined #crystal-lang
<Groogy> he means the public API has a lot of POSIX specific idioms which Windows don't support
<Groogy> for instance I don't think windows yet support fork
<Groogy> Ruby's fork method work completley different between unix and windows
<Groogy> because of that
<Papierkorb> didn't windows not even support COW? Or have they fixed that?
<Groogy> COW is the copy on write right?
<Papierkorb> yes
<Groogy> yeah that is specifically what windows don't support
<Groogy> and Windows can't also put the instruction pointer to where you where upon the call to fork
<Papierkorb> at least not in the public api.
<Groogy> so Ruby fakes that
rohitpaulk has quit [Ping timeout: 240 seconds]
<Yxhuvud> I wonder how the linux subsystem solves that
<Groogy> magic chanting
<FromGitter> <sdogruyol> Just rebooted to Windows by accident.. and now waiting for the freaking update to turn it off
<FromGitter> <sdogruyol> This is madness
<Papierkorb> lawl
<Papierkorb> I only have windows in a VM, and honestly, I just kill the process if it annoys me
<Papierkorb> Surprisingly, it rarely breaks the virtual HDD
<Papierkorb> But even if, eh, I have snapshots
<FromGitter> <sdogruyol> well, I wish I could test Crystal on Windows without Linux subsystem
<FromGitter> <sdogruyol> would be awesome
<Groogy> I only use Windows for playing games :/
<Papierkorb> ^
<RX14> i dont use windows even for that
<FromGitter> <sdogruyol> I used to play games on Windows
<RX14> the few games that I do play are all linux compatible
<RX14> luckilly enough
<FromGitter> <sdogruyol> Nowadays i just play MOBAs on my mobile phones
<FromGitter> <sdogruyol> easier
<oprypin> D:
<FromGitter> <sdogruyol> :D
<FromGitter> <sdogruyol> 5v5 mobas are shorter and funnier to play on the go
<FromGitter> <l1meon> Hi all. Does anybody know what happened to amber_cmd ? ⏎ Trying to follow this guide: https://amber-crystal.gitbooks.io/amber/content/getting-started/Installation/
<FromGitter> <l1meon> Nvm, instead of amber_cmd, build from amber source :)
<FromGitter> <coderhs> Hi there, where can I find high quality image of crystal. Would like to print some stickers for our an upcoming meetup. Where we are talking about crystal. https://www.meetup.com/kerala-ruby/events/242706539/
<FromGitter> <sdogruyol> @coderhs https://crystal-lang.org/media/
<FromGitter> <coderhs> thank you. @sdogruyol would like to print some kemal.cr stickers as well. :D Can you share the image for that as well.
<FromGitter> <sdogruyol> that'd be awesome
<FromGitter> <sdogruyol> @coderhs https://avatars3.githubusercontent.com/u/15321198
<FromGitter> <coderhs> 👍
chamar has quit [Quit: Leaving]
Groogy has quit [Quit: WeeChat 1.9]
hightower3 has joined #crystal-lang
<FromGitter> <krypton97> haha, I used to use windows for playing games too :)
weston has joined #crystal-lang
<FromGitter> <krypton97> But got bored so I switched to linux fulltime
hightower2 has quit [Ping timeout: 260 seconds]
<FromGitter> <sdogruyol> great way to keep you away from spending too much time on games
<FromGitter> <sdogruyol> :D
<FromGitter> <sdogruyol> also don't buy a pc with a good external graphics card
<Papierkorb> .. external?
<FromGitter> <krypton97> Well, I still got some steams game that works very well on linux
chamar has joined #crystal-lang
<FromGitter> <krypton97> I've bought an asus rog at the end of 2016 for playing games.. after about 1 month quited and wanted a mac :)
<oprypin> -_-
Rinkana has joined #crystal-lang
<Rinkana> Is there any way to fix: https://play.crystal-lang.org/#/r/2oz3 while still keeping the same code principle?
<Rinkana> `The above logic doesn’t work with instance variables or class variables:` :(
<oprypin> Rinkana, no but read all of it
<Rinkana> @oprypin wont those alternatives make two instances of the same var?
<Rinkana> Because i'm trying to be as performant as possible
l1meon has joined #crystal-lang
<oprypin> Rinkana, this does not affect performance
<Rinkana> Alright, thanks!
<l1meon> Rinkana, https://play.crystal-lang.org/#/r/2oza, dont know if you need this result. But this works. :)
<RX14> pro tip: when your implementation doesn;t pass the specs, just change the specs!
<Rinkana> Thanks @l1meon . But my example was a very basic version of the issue. In the true issue the `call_foo` function would be in an external lib. So i cant just override it
<Rinkana> @RX14 Pro-pro tip: just xit the specs that fail
<l1meon> Rinkana, why not? In ruby you just implement the same namespace for class and methods so you can override them. Or this is not a crystal lib?
<Rinkana> Yeah true, but i don't want to introduce such patches this soon into my codebase. Especially when the example oprypin gave works too and has no performance impact
<l1meon> Oh, ok.
<RX14> l1meon, thats a terrible way to fix it
<l1meon> RX14, hacks are hacks :)
<RX14> yes but if foo = @foo is literally shorter and easier
<RX14> 1) it's at the callsite so you dont have to move to a seperate area of the file to monkeypatch
<RX14> 2) it's 2 lines instead of 3
<RX14> and most of all
<RX14> it's the correct way to do it in terms of encapsulation
<RX14> overriding functions to silently ignore nils is just crazy and wrong. It breaks the expectations of every other caller, and can easilly mask errors
<l1meon> true, maybe I have this in mind cause of the rails ecosystem and gems..
<Rinkana> Oh tell me some, all those class_eval monkypatches xD
ShalokShalom has quit [Read error: Connection reset by peer]
<l1meon> yeah, and that's why I'm looking to change language and framework. And how cool was when I found about crystal this year :)
<l1meon> Wondering if crystal gonna have some breaking changes in syntax or other stuff, till 1.0.
ShalokShalom has joined #crystal-lang
<Rinkana> Probably
<l1meon> I'm thinking how hard will be to port to 1.0 if I build with current version for production.
<RX14> typically the breaking changes aren't too big of a deal if you keep up to date with the versions
<RX14> its usually a few minor things each version
<RX14> it does add up though
hightower3 has quit [Remote host closed the connection]
<Rinkana> yeah true, but mostly some simple style semantics. It's quite simple to port if you look at the changelog
<l1meon> Ok, thank you. Guess I'll start a project. :) But first, I should better understand the differences between array/tuple, and are the differences cost heavy? in terms of memory/cpu?
<l1meon> As I'm looking at the docs, I think I'll be using tuples most of the time.
<Papierkorb> No
<Papierkorb> Tuples are /not/ arrays. They're structures
<Papierkorb> They just happen to allow you to iterate over all of its members.
<Papierkorb> If you have a dynamic list of some kind (Which is the norm), use array.
<Papierkorb> You're forced to.
<l1meon> Are some Best Practices anywhere?
<FromGitter> <faustinoaq> Papierkorb when should I use `StaticArray`?
<Papierkorb> Tuples are mainly to 1) splat them (you can't splat an array!) 2) use as cheap replacement for a enumerable structure known at compile-time
chamar has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
<travis-ci> crystal-lang/crystal#3d48a96 (master - Support LLVM 5.0 (#4821)): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/273457974
<RX14> @faustinoaq never
<RX14> essentially
<RX14> it's unlikely to be useful outside low-level code
<Papierkorb> l1meon: Consider this: You have a method which calculates a value from a list: `def calc(list); list.sum; end`. This method is valid Ruby and Crystal. Now, you want to allow a user to (indirectly) supply a list - You use an array for this (Think, REST APIs). But at another point in your program, you want to call this function with a known length of elements. You *can* use both here: `calc({ 1, 2, 3 })` is perfectly valid, as would be an
<FromGitter> <faustinoaq> Ok 😅
<Papierkorb> array. What's the difference now? A tuple is a struct, hence it doesn't bother the GC at all, they're "free". So the last example won't allocate any additional memory for the call. If you use an array there, it'll allocate memory. Do note that this comes down to style, this should not be done just because "muh performance"
<Papierkorb> What RX14 said. Too easy to shoot yourself in your foot if you're not careful.
<RX14> if you need staticarray, you already know you need staticarray without asking IRC lol
<Papierkorb> If you're not careful, misuse of StaticArray could end up opening the path for a security exploit in your program.
<FromGitter> <faustinoaq> lol
<Papierkorb> Ever heard of buffer under-/overflows? Much harder to do with Arrays, impossible (?) if you just use them normally.
<Papierkorb> (Don't wanna open the can of worms of stack based exploitation now lul)
chamar has joined #crystal-lang
<chamar> Hello folks, it's Saturday learning so I thought I would have a look at Crystal. Which VS Code extension is the most up to date / useful? (I see there's 3 of them....)
<RX14> i'm 90% sure
<chamar> Thank you!
<chamar> And second question, is there any good tutorial around just to get the feels of it?
<RX14> not aure about that
<RX14> people who learned crystal a lot more recently than I would be more qualified to answer that
<RX14> i just read the language ref, as that was pretty much the only available thing at the time
<RX14> but that was late 2015 iirc
<chamar> yeah.. I'll go that route then.. Thanks
<Rinkana> Yeah, personally i just think of a "simple" idea and make that in to Crystal
<Rinkana> Thats why i'm making a rendering engine. (it just misses the simple part....)
<chamar> cool.. I already have a little thing in mind.. that should do the trick
<chamar> It's mostly curiosity ;)
<FromGitter> <faustinoaq> > Ever heard of buffer under-/overflows? ⏎ ⏎ Papierkorb, yeah I lot of then when I use to code in C. ⏎ ⏎ > Which VS Code extension is the most up to date / useful? ... [https://gitter.im/crystal-lang/crystal?at=59b41db74e50cfde271f87e4]
<FromGitter> <faustinoaq> ((https://i.imgur.com/kZqPZYc.gif))
rohitpaulk has joined #crystal-lang
<chamar> Thanks ;)
<FromGitter> <faustinoaq> > is there any good tutorial around just to get the feels of it? ⏎ ⏎ Yeah, check these videos 👉 https://www.dailydrip.com/topics/crystal
weston has quit [Ping timeout: 255 seconds]
<chamar> :)
<crystal-gh> [crystal] mverzilli closed pull request #4942: Remove travis OSX build (master...bugfix/remove-travis-osx) https://git.io/v565r
<Rinkana> Argh, damn inter-class deps. How can they expect me to make 'clean' code while there are this many random dependancies
<Rinkana> Time for some dinner..
<FromGitter> <faustinoaq> Iol, I use Manjaro Linux and I almost never installed a dependency for crystal
<travis-ci> crystal-lang/crystal#3d48a96 (master - Support LLVM 5.0 (#4821)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273457974
<travis-ci> crystal-lang/crystal#b87c856 (master - Win: define Win32 API functions (#4832)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273477890
<FromGitter> <faustinoaq> I didn't know English has so many ways to say "friend" 👉 http://bigthink.com/strange-maps/the-heart-of-dudeness
<travis-ci> crystal-lang/crystal#6f651d9 (master - Remove travis OSX build): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273657620
l1meon has quit [Quit: Leaving]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weston has joined #crystal-lang
weston has quit [Ping timeout: 260 seconds]
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
<FromGitter> <timkendall> Has anyone else had a hell of a time getting Crystal to work on OSX Sierra?
<adam12> Nope?
<adam12> Compiling Crystal itself or compiling Crystal programs?
<FromGitter> <timkendall> Programs - I just used brew to install Crystal itself
<adam12> What's happening?
<adam12> Did you just install Crystal? Maybe the brew recipe is bad.
<FromGitter> <timkendall> Yeah I followed the docs and ran `brew install crystal-lang` - made sure Xcode CLI toolss were installed as well
<FromGitter> <timkendall> I get this error when just trying to run `crystal play` => `ld: library not found for -lssl`
<FromGitter> <timkendall> Crystal does work fine on my other laptop running Sierra though so ¯\_(ツ)_/¯
<FromGitter> <faustinoaq> Oh, I see seems you need to install openssl, I tought it was installed by default in MacOS.
<FromGitter> <timkendall> Ah yea thats what I thought too - it's installed tho :/
<FromGitter> <faustinoaq> and works now?
<FromGitter> <timkendall> Nope
<FromGitter> <timkendall> This is the error I keep getting when trying to do `crystal run something.cr`
<FromGitter> <timkendall> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=59b43af0ee5c9a4c5f4e543a]
<FromGitter> <timkendall> I've tried uninstalling/reinstalling Xcode as well
<Yxhuvud> can't you just install it through brew?
<FromGitter> <timkendall> thats what I tried - and this is where I ended up lol
<FromGitter> <faustinoaq> lol
<FromGitter> <faustinoaq> @timkendall I think you error is pretty strange, let me figure out what is happening here :)
<FromGitter> <timkendall> Alright thanks man, I appreciate it!
Rinkana has quit [Ping timeout: 260 seconds]
<FromGitter> <faustinoaq> @timkendall I can't reproduce your problem, Can you try to install clang and compile a simple program? 👇 ⏎ ⏎ ```int main() { return 0; }``` ⏎ ⏎ Seems that your linker is doing something wrong 😟 ... [https://gitter.im/crystal-lang/crystal?at=59b4435ec101bc4e3aa928cc]
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <timkendall> Yeah i figured it was something with my linker 😟
<FromGitter> <timkendall> clang compiles that simple program fine :/ Thanks for looking into it, obv. not an issue with OSX, just my config for that specific computer. Thanks again!
<FromGitter> <faustinoaq> 👍 I hope you solve your problem and stay tuned, maybe someone can help in something.
<FromGitter> <krypton97> I've issues as well with clang trying to generate libvips bindings, but still can build cr apps
<FromGitter> <timkendall> 👍
weston has joined #crystal-lang
weston has quit [Ping timeout: 240 seconds]
Groogy has joined #crystal-lang
mounibec has joined #crystal-lang
<FromGitter> <sdogruyol> llvm 5.0 is still not in AUR
<FromGitter> <sdogruyol> or am i missing it?
<crystal-gh> [crystal] mverzilli closed pull request #4774: Add support for max + min intrinsics (master...add-math-operations) https://git.io/v7RNn
<FromGitter> <sdogruyol> ah ok, it's in staging
<travis-ci> crystal-lang/crystal#c307051 (master - Add support for max + min intrinsics (#4774)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273699997
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/v5isv
<crystal-gh> crystal/master 46197bd Akzhan Abdulin: Fixes to bigint 32bit (#4922)...
claudiuinberlin has joined #crystal-lang
weston has joined #crystal-lang
<travis-ci> crystal-lang/crystal#46197bd (master - Fixes to bigint 32bit (#4922)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273704364
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
mounibec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<FromGitter> <wwselleck> hey @picatz, if you make some issues in argz i'd be happy to give a go at them. Trying to learn crystal and figure that'd be a good way since I could get some feedback and start small..
mounibec has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
mounibec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mounibec has joined #crystal-lang
mounibec has quit [Client Quit]
weston has quit [Ping timeout: 240 seconds]
weston has joined #crystal-lang
cptaffe has joined #crystal-lang
<FromGitter> <crisward> @sdogruyol If you build crystal with llvm 5.0, but sure to share your findings. Especially if it doubles compile speed 😉
* cptaffe sent a long message: cptaffe_2017-09-09_23:26:18.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/tfLzsYfBzDtBnCGwjpzwVZhI>
<cptaffe> `DATABASE` is an instance returned by `DB.open` and given a string (it's valid, I've connected with `psql`)
<cptaffe> `Url::paginate_all` just calls `DATABASE.query("select a, b from foo limit 100 offset 0")`
weston has quit [Ping timeout: 248 seconds]
ShalokShalom is now known as haywire
haywire is now known as heywire
<cptaffe> Ok, so an exception fired iniside `DATABASE`'s init expression and that's what caused it to segfault. Is this expected behavior?
heywire is now known as ShalokShalom