jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | 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
soveran has joined #crystal-lang
Dreamer3 has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
Philpax has quit [Ping timeout: 244 seconds]
kulelu88 has quit [Quit: Leaving]
Oliphaunte has joined #crystal-lang
ponga has joined #crystal-lang
Philpax has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
Philpax has quit [Ping timeout: 276 seconds]
Oliphaunte has joined #crystal-lang
Philpax has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
Oliphaunte has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
xmgx has quit [Remote host closed the connection]
soveran has quit [Ping timeout: 264 seconds]
matp has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
pabs has quit [Ping timeout: 240 seconds]
pabs 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
mark_66 has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
bjz has joined #crystal-lang
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
ome has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox_ has quit [Read error: Connection reset by peer]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
akwiatkowski has joined #crystal-lang
sheaned has joined #crystal-lang
sheaned has quit [Client Quit]
pawnbox_ has quit [Ping timeout: 250 seconds]
crystal-lang721 has joined #crystal-lang
crystal-lang721 has quit [Ping timeout: 264 seconds]
<jhass> RX14: thanks, should be fixed now and I put better monitoring in place until I have time to properly tackle the issue.
<RX14> what happened?
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Read error: No route to host]
pawnbox has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 244 seconds]
onethirtyfive has quit [Read error: Connection reset by peer]
onethirtyfive has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
soveran has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
tomchapi_ has quit [Ping timeout: 258 seconds]
tomchapin has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
badeball_ is now known as badeball
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
mkl0501 has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
matp has quit [Remote host closed the connection]
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Oliphaunte has quit [Remote host closed the connection]
mkl0501 has joined #crystal-lang
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
matp has joined #crystal-lang
Oliphaunte has joined #crystal-lang
soveran has quit [Remote host closed the connection]
mkl0501 has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
endou_ has joined #crystal-lang
endou has quit [Ping timeout: 240 seconds]
jamie_ca has quit [Ping timeout: 240 seconds]
leafybasil has quit [Ping timeout: 240 seconds]
go|dfish has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Ping timeout: 240 seconds]
leafybasi has joined #crystal-lang
[spoiler] has joined #crystal-lang
jamie_ca has joined #crystal-lang
go|dfish has joined #crystal-lang
soveran has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<BlaXpirit> I'm looking to parse Crystal code and extract documentation comments from it, along with their associated node. what should I look at?
soveran has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 244 seconds]
<BlaXpirit> anyhow, this gives 'nil' output https://carc.in/#/r/17f1
soveran has quit [Remote host closed the connection]
<FromGitter> <mverzilli> https://carc.in/#/r/17f4
<FromGitter> <mverzilli> it seems you need explicitly tell the parser that you want it to parse comments
<FromGitter> <mverzilli> maybe an optimization
<FromGitter> <mverzilli> (the above returns "M", I guess that's what you expected)
kulelu88 has joined #crystal-lang
<BlaXpirit> oh good. thank you!
<FromGitter> <mverzilli> yw!
xmgx has joined #crystal-lang
soveran has joined #crystal-lang
Ven has joined #crystal-lang
eirwin has joined #crystal-lang
<eirwin> What is the proper way to convert the following example into JSON response type?
<eirwin> obviously, specifying content-type, but Im new to Crystal and don't see how I am writing response out
soveran has quit [Remote host closed the connection]
<RX14> eirwin, there are several ways, but for a first try you want something like `{message: "Hello World"}.to_json(context.response)`
<FromGitter> <mverzilli> I'd do this, maybe there's a better way: https://carc.in/#/r/17f9
soveran has joined #crystal-lang
<RX14> in a big app you will probably want a JSON.mapping on your objects then call to_json
<RX14> in a small example you can just use namedTuple
<eirwin> thanks, let me try this real quick...Im brand new to Crystal, so just trying to figure out whats available,syntax,etc
<RX14> if you need really cusom json you can use the json builder stuff
<RX14> but thats advaned
soveran has quit [Ping timeout: 265 seconds]
akwiatkowski has joined #crystal-lang
<eirwin> nice, this is exactly what I needed (it worked). In the future, once Im more familiar, I would def use a more robust way of doing this, but this is perfect for now
<eirwin> is there a recommended API framework for building REST API endpoints, binding models,etc? I haven't really seen anything, but haven't looked too hard
<RX14> in terms of ORM there's active_record.cr (https://github.com/waterlink/active_record.cr)
<RX14> and thats basically the only ORM around at the moment
<RX14> the rest you can either use kemal, or build your own
<RX14> using crystal's http server then a routing library
<eirwin> right, I figured that was probably the best route, I was just having a hard time finding good (Robust) examples of the http server and routing library
onethirtyfive has quit [Remote host closed the connection]
<FromGitter> <mverzilli> there's also: https://github.com/soveran/toro
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<RX14> eirwin, if you want something more traditional you can try crouter
soveran has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
eirwin has quit [Ping timeout: 264 seconds]
Oliphaunte has quit [Remote host closed the connection]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomchapi_ has joined #crystal-lang
bjz has joined #crystal-lang
tomchapi_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<jeromegn> awwww crap. I didn’t know this existed… https://github.com/teodor-pripoae/protokol I looked for “protobuf"
<jeromegn> I guess we now have 2 protobuf shards :shrug:
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
<RX14> jeromegn, pinch all the things it does better :)
<jeromegn> :)
<RX14> like having types actually be PascalCase
<RX14> i mean if required is a macro you don't even need it to be a symbol
<jeromegn> is that better? I can’t tell. It deviates from how the protocol names them
<RX14> jeromegn, https://carc.in/#/r/17fb
<jeromegn> it’s more crystalesque, but then again, symbols that look like constants?
<RX14> i mean they are technically types
<RX14> just not crystal ones
<jeromegn> yea
<jeromegn> I guess it could accept the types as pascalcased constants
<RX14> i really like having the visual difference between the names and the types
<jeromegn> but I fear it could be confusing
<jeromegn> yea
<RX14> because currently i just see symbols
<RX14> at least in protokol they're PascalCase so there's some difference
<jeromegn> how do you feel about using PascalCase and no symbol `:` ?
<jeromegn> confusing? since those won’t actually exist.
<RX14> i already said i like that
<jeromegn> oh sorry, missed it!
<RX14> it gives them the colouring of types in the IDE
<RX14> /editor
<RX14> so it distinguishes them
<jeromegn> yes
<jeromegn> agreed
akwiatkowski has quit [Ping timeout: 244 seconds]
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]