00:11
mverzilli has joined #crystal-lang
00:28
waj has joined #crystal-lang
00:34
e_dub has joined #crystal-lang
00:36
e_dub has joined #crystal-lang
01:34
waj has joined #crystal-lang
02:55
r0ast has joined #crystal-lang
02:57
<
r0ast >
I have a few questions about the status of crystal lang
02:58
<
r0ast >
I was hoping someone could explain the differences in syntax from ruby, if there are any
02:59
<
r0ast >
Anyone know?
03:00
<
waj >
The syntax is inspired by ruby but there are actually many differences
03:00
<
waj >
mostly some type annotations that must be specified sometimes
03:00
<
r0ast >
Do we have a list somewhere?
03:01
<
r0ast >
Of what is different?
03:02
<
r0ast >
Awesome. I'll take a look.
03:02
<
r0ast >
I'm really interested in the project
03:02
<
waj >
are you thinking in any particular use?
03:03
<
r0ast >
Not sure yet
03:04
r0ast_ has joined #crystal-lang
03:05
<
r0ast_ >
Switching from my phone to my laptop
03:05
<
r0ast_ >
Just a moment :)
03:05
r0ast has joined #crystal-lang
03:06
<
r0ast >
Has there been any attempt to expand the standard library?
03:06
<
waj >
ok, in which platform are you running?
03:06
<
r0ast >
OS X Yosemite
03:06
<
waj >
we're expanding it all the time :)
03:07
<
r0ast >
I was thinking of how to get it expanded quickly
03:07
<
waj >
but instead of just adding classes we have some pet projects in Crystal and we add stuff to the std as needed
03:07
<
r0ast >
Have you tried converting the Ruby std lib to crystal
03:08
<
waj >
no… I don't think that's feasible
03:08
<
r0ast >
Ok, that was my thought
03:08
<
waj >
metaprogramming in crystal is quite different
03:08
<
r0ast >
It's written in ruby, but i wasnt sure of teh syntax differences
03:08
<
waj >
in ruby you have a dynamic language
03:08
<
r0ast >
Ahhhhh true
03:09
<
waj >
while in Crystal metaprogramming is mostly done using macros
03:09
<
r0ast >
Has anyone written an Http server?
03:09
<
waj >
on the other hand… much of the interesting stuff of Ruby's std is written in C
03:09
<
r0ast >
Other than the example?
03:09
<
waj >
the example is reeeeealy old. I think one of the first examples we had :)
03:10
<
r0ast >
That's amazing news!
03:10
<
waj >
but there is a much more functional HTTP::Server in the std right now
03:10
<
r0ast >
I havent seen it, but that's great
03:10
<
waj >
also, we're playing with a Sinatra like server
03:10
<
r0ast >
It's on github?
03:10
<
waj >
we called "Frank" ;)
03:10
<
r0ast >
That would be amazing.
03:11
<
r0ast >
That's awesome
03:12
<
r0ast >
All my projects that I write in ruby start with sinatra
03:12
<
r0ast >
So I'm really excited
03:12
<
r0ast >
What's missing?
03:12
<
r0ast >
From Frank?
03:13
<
waj >
everything :)
03:14
<
r0ast >
I'd like to contribute if possible
03:14
<
r0ast >
To anything :)
03:14
<
waj >
there is tons of stuff to do
03:14
<
r0ast >
This is a really exciting
03:14
<
r0ast >
Who's running the project?
03:15
<
r0ast >
Are there any companies involved?
03:16
<
r0ast >
I'd really like to be involved
03:18
<
waj >
if you wan't to contribute you can start sending PR
03:19
<
r0ast >
I'll start working on some things
03:19
<
waj >
don't hesitate to ask
03:19
<
r0ast >
I mean, building projects and filling in the holes
03:19
<
waj >
btw, where are you based?
03:19
<
r0ast >
Tomsk, Russia
03:19
<
r0ast >
I'm a US citizen though
03:19
<
r0ast >
From california....
03:20
<
r0ast >
And now I live in siberia
03:20
<
waj >
we're in Buenos Aires, Argentina
03:20
<
r0ast >
Is Manas Hiring at all?
03:20
<
r0ast >
I'm not working at the moment
03:20
<
waj >
so… seems there is 10 hours
03:20
<
r0ast >
Something like that
03:21
<
r0ast >
Can i PM you my github?
03:21
<
r0ast >
Private message
03:22
<
waj >
oh! ok, no problem
03:22
<
r0ast >
Or I can post it here, whatever's easier
03:22
<
waj >
I prefer to keep conversations open if possible
03:22
<
waj >
we have a mailing list as well
03:22
<
r0ast >
Makes sense, I prefer IRC
03:23
<
r0ast >
Let me know if you need another devloper :)
03:23
<
r0ast >
Also, If you want it
03:24
<
r0ast >
Anyway, I'll start building and submit PRs if I find any gaps
03:25
<
r0ast >
It's probably early, but do you have any kind of package manager?
03:25
<
r0ast >
Like rubygems is to ruby
03:25
<
r0ast >
Is there a need?
03:26
<
waj >
we tried to design something that doesn't need a central server
03:26
<
r0ast >
Yeah, hosting those is not cheap
03:26
<
waj >
but… as there isn't many crystal libraries yet, it's not a high prio
03:27
<
r0ast >
Another question
03:27
<
r0ast >
Is the HTTP lib included in the distribution?
03:27
<
r0ast >
Where can I find it?
03:28
<
r0ast >
Is the latest version on the brew tap?
03:28
<
waj >
the tap has the latest release
03:28
<
waj >
0.4.4 at the moment
03:28
<
r0ast >
That's what I have
03:29
<
r0ast >
Is there vim highlighting?
03:29
<
r0ast >
I didn't see anything
03:29
<
waj >
things change fast anyway :)
03:29
<
waj >
yes, I know someone did one
03:29
<
waj >
let me see… I don't use much vim myself
03:30
<
r0ast >
I can make one if not
03:32
<
r0ast >
I just got it working in Vim
03:35
<
waj >
ok… time to shut down for me ;)
03:35
<
r0ast >
Thanks for your help! Really excited to contribute
03:35
<
waj >
nice to meet you Sam! I hope you can join us on this project!
07:12
r0ast has joined #crystal-lang
12:53
LinkError has joined #crystal-lang
12:56
e_dub has joined #crystal-lang
12:57
<
LinkError >
Does anyone know what would cause this error: "ld: library not found for -lgc" (On a mac with Crystal 0.4.4 [ef755e1] ) .
13:01
<
jhass >
LinkError: sounds like you didn't install libgc (correctly)
13:01
<
jhass >
how did you install crystal?
13:02
<
LinkError >
I used brew
13:03
<
LinkError >
Must I install libgc as well?
13:04
<
LinkError >
brew says it install three dependencies: llvm33, bdw-gc, libpcl
13:05
<
LinkError >
bdw-gc-7.4.2 is installed
13:05
<
jhass >
bdw-gc should be it. I guess we have to wait for someone with actual mac/brew experience ;)
13:05
<
LinkError >
yeah I'll try installing via the source repository
13:06
<
LinkError >
I'll see if that makes a difference
13:06
<
jhass >
os x dynamic library system seems weird, people seem to have troubles with it all the time
13:31
r0ast has joined #crystal-lang
13:36
mverzilli has joined #crystal-lang
13:59
bcardiff has joined #crystal-lang
14:17
asterite has joined #crystal-lang
14:23
waj has joined #crystal-lang
14:41
e_dub has joined #crystal-lang
14:46
<
LinkError >
using the sample code on "
http://en.wikipedia.org/wiki/Boehm_garbage_collector " works if I compile with "clang test.c -I/usr/local/include -L/usr/local/lib/ -lgc" but gives me an error when I exclude "-L/usr/local/lib/". now my question is where does crystal look for "libgc.a" (on mac)?
14:47
<
LinkError >
I've been at this for about 1:40mins... can't figure out why I get: "ld: library not found for -lgc"
14:47
<
asterite >
It's strange, because I read you installed with it homebrew
14:48
<
asterite >
You can compile a program with —verbose, it will output the linker line we are using
14:48
<
asterite >
and copy it here so we can see what's wrong
14:49
<
LinkError >
Ok.. I'll try that now...
14:49
<
waj >
so strange your compiler is not looking at /usr/local/lib by default
14:50
<
waj >
crystal doesn't add that path to the search path so that should be the problem
14:53
<
r0ast >
Hello again
14:54
<
r0ast >
I was working on a small test app with frank, and wanted to use Elasticsearch as a data store
14:54
<
r0ast >
Has anyone written a lib for that?
14:55
<
LinkError >
Not looking at /usr/local/lib is definitely the problem.
14:57
travis-ci has joined #crystal-lang
14:57
travis-ci has left #crystal-lang [#crystal-lang]
14:57
<
travis-ci >
[travis-ci] manastech/crystal#1486 (master - d7827f0 : Ary Borenszweig): The build has errored.
14:59
<
r0ast >
Do we have anything like post_json in the stdlib? I saw get_json, but I specifically need POST
15:03
e_dub has joined #crystal-lang
15:07
<
asterite >
@LinkError we have no idea why cc isn't looking in the correct places
15:07
<
asterite >
If you take that line in the pastebin and replace cc with clang, does it work?
15:13
<
LinkError >
it doesn't, but if I change "cc" to "clang -L/usr/local/lib" it works :) I still need make cc search /usr/local/lib.
15:14
<
LinkError >
it seems like both cc and clang are not searching /usr/local/lib
15:32
e_dub has joined #crystal-lang
15:33
<
asterite >
@r0ast Cool, we use ElasticSearch a lot here
15:33
<
r0ast >
Awesome, It's one of my favorite tools
15:33
<
r0ast >
Or I guess it's more of a technology, but whatever ;)
15:34
<
r0ast >
asterite: Should i submit a PR for the post_json method? I think it's a stdlib thing since it has a broad range of uses
15:35
<
asterite >
I'm sure posting json is very common… I'm just not sure a response for that is always a json
15:36
<
asterite >
In fact, maybe get_json shouldn't belong to HTTP::Client, since you can just do Json.parse HTTP::Client.get(…).body.not_nil!
15:36
<
r0ast >
True, but we have get_json, so it might be good just for sake of completeness
15:36
<
r0ast >
This is true
15:37
<
r0ast >
Also - Just so I make sure I'm not reinventing the wheel, Frank doesn't have a the ability to parse URL params, right?
15:37
<
r0ast >
Something like ?q=blahblah
15:38
<
asterite >
Right, it doesn't… I remember for that we needed to parse those so we wrote the CGI module
15:38
<
asterite >
but then we continued with other things… :-P
15:38
<
r0ast >
I didn't see anything in the frank project, so i built it
15:39
<
r0ast >
I can submit a PR
15:39
<
r0ast >
If you think it's good
15:39
<
asterite >
Cool! Did you use the CGI module?
15:39
<
r0ast >
I didn't know we had one
15:39
<
r0ast >
But I did it manuall
15:39
<
asterite >
Sorry, we don't have something like rdoc yet :(
15:39
<
r0ast >
Let me look at it
15:40
<
r0ast >
I see parse, but is that only for POST requists?
15:41
<
asterite >
@LinkError maybe you can use LIBRARY_PATH=/usr/local/lib to compile
15:41
<
r0ast >
I read the comment
15:41
<
asterite >
It parses a query string
15:41
<
asterite >
Similar to Ruby
15:41
<
r0ast >
I'll use that instead
15:41
<
asterite >
You also have a method that received a block, in case you don't want to build an array
15:42
<
asterite >
A hash, sorry
15:42
<
r0ast >
I had it parse it into a hash
15:43
<
r0ast >
For example, ?yolo=yes would equal a hash where hash["yolo"] == "yes"
15:44
<
r0ast >
Which i think is good because it's cleaner, and often times a block is overkill
15:45
<
r0ast >
But I think it should definitely be in the CGI module
15:50
<
asterite >
The problem is that a param can appear multiple times… we still don't know how to properly handle those in frank
15:50
<
asterite >
Lunch time, talk to you later :)
15:59
e_dub has joined #crystal-lang
16:00
<
LinkError >
"LIBRARY_PATH=/usr/local/lib" works but it has to be on the same line as "crystal test.cr".
16:00
<
LinkError >
I added "export LIBRARY_PATH=/usr/local/lib" to my ~/.bash_profile, and now it works :D
16:45
mverzilli has joined #crystal-lang
16:53
e_dub has joined #crystal-lang
16:57
asterite has joined #crystal-lang
17:03
bcardiff1 has joined #crystal-lang
17:05
<
LinkError >
Hey, asterite! I got it to work :D I just added "export LIBRARY_PATH=/usr/local/lib" to ~/.bash_profile
17:06
<
asterite >
(but I think it's not mentioned anywhere)
17:07
<
LinkError >
Thats cool! (I guess I didn't need to repeat myself then :P )
17:09
<
asterite >
If you have another issue, just report it here
17:09
<
asterite >
Though I guess someone with a different nickname will report it? :-P
17:11
<
LinkError >
:D I'll probably join as TheBlueCrane next time.
17:13
TheBlueCrane has joined #crystal-lang
17:18
<
TheBlueCrane >
I changed my name to TheBlueCrane and registered it.
17:24
mverzilli_ has joined #crystal-lang
18:24
e_dub has joined #crystal-lang
18:58
mverzilli_ has joined #crystal-lang
19:21
mverzilli has joined #crystal-lang
19:51
e_dub has joined #crystal-lang
19:57
mverzilli has joined #crystal-lang
20:24
bcardiff has joined #crystal-lang
22:04
mverzilli_ has joined #crystal-lang
22:09
CraigBuchek has joined #crystal-lang
22:55
travis-ci has joined #crystal-lang
22:55
travis-ci has left #crystal-lang [#crystal-lang]
22:55
<
travis-ci >
[travis-ci] manastech/crystal#1487 (master - a99e6d0 : Ary Borenszweig): The build has errored.
22:56
mverzilli has joined #crystal-lang
23:29
bcardiff has joined #crystal-lang