daneb has quit [Remote host closed the connection]
veelenga has joined #crystal-lang
datanoise has joined #crystal-lang
daneb has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
datanoise has quit [Ping timeout: 276 seconds]
<jhass>
wmoxam: not that I'm aware of
Ven has joined #crystal-lang
<jbye>
to sortof continue the discussion regarding json_mapping and to_h from yesterday. I still think that being able to take a json mapped object and turning it in to a Hash is useful. I could then create a driver that takes Hash as an input parameter to construct e.g. an INSERT query
<jhass>
http://carc.in/#/r/4d4 besides their names, both classes have the same code here
daneb_ has joined #crystal-lang
daneb has quit [Read error: Connection reset by peer]
<daneb_>
ah!
<daneb_>
jhass: does the inline code not bloat at more complex levels of code, or is that negligible given the optimisations that crystal will do, so if I coded it or you used a macro, the results would be similar?
<jhass>
the latter, yeah
<jhass>
it's literally generating code and feeding it back into the parser
<daneb_>
thanks jhass for taking the time to explain ;)
<jhass>
the code that's generated is exactly the same, all the {% %} and {{ }} stuff is evaluated at compile time and gone once macro expansion is done
daneb_ has quit [Remote host closed the connection]
daneb has joined #crystal-lang
unshadow has quit [Quit: leaving]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
datanoise has joined #crystal-lang
orliesaurus has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
ytti has quit [*.net *.split]
orliesaurus has joined #crystal-lang
fowlduck has joined #crystal-lang
emmanueloga has joined #crystal-lang
fowlduck has quit [Ping timeout: 272 seconds]
datanoise has quit [Ping timeout: 264 seconds]
unshadow has joined #crystal-lang
<unshadow>
Anyone got some expireance with the XML module ? I'm trying to get everything under appSettings --> http://carc.in/#/r/4f0
<jhass>
well, that it segfaults is clearly a bug
<unshadow>
jhass: yeha, I'll open an issue, but aside from that, is there a doc or just go read the specs ? ;)
<jhass>
but you can just .xpath("/configuration/appSettings")
<unshadow>
jhass: Oh... true Thanks :)
<unshadow>
jhass: well, it seems that xpath returns a String, so I cant manipulate the data
<unshadow>
maybe I shoud XML.parse the returned value
<jhass>
you still puts the result, right?
<jhass>
use p, not puts ;)
<jhass>
(or pp)
<unshadow>
jhass: ohhh stupid me
<unshadow>
hahah thanks
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 246 seconds]
daneb_ has joined #crystal-lang
daneb has quit [Read error: Connection reset by peer]
<unshadow>
ok.. I never really used XML so maybe i'm trying it wrong, how can I change\update on of the key = value pairs ?http://carc.in/#/r/4fs
havenwood has joined #crystal-lang
<jhass>
doesn't look like the modifying stuff is mapped out yet :/
fowlduck has joined #crystal-lang
<unshadow>
we really need someone to start a Nokogiri like project in crystal
<jhass>
I'd love to see something like oga actually
ponga has joined #crystal-lang
fowlduck has quit [Ping timeout: 248 seconds]
<jhass>
libxml2's development appears to be pretty dead, no XPath 2, Nokogiri's CSS support is all just transforming them to XPaths etc.
<daneb_>
so about that unshadow, a port by Friday? ;)
<unshadow>
it loos really nice :) maybe we can tell this @YorickPeterse guy about crystal, he might want to help out ;)
<unshadow>
daneb_: hahah yeha right XD I'm currently doing full time job helping Codcore makeing Ametheyst a great Web Framewrok
<daneb_>
unshadow: awesome!! Would one consider this to equal a kind of padrino? And will it be supporting websockets?
daneb_ is now known as daneb
<unshadow>
daneb: well, padrino is based on Sinatra, while Amethyst is based on Rails (kind of) you can take a look an help out :) https://github.com/Codcore/Amethyst
<jhass>
and I already tried to convince yorick to do it :P
<daneb>
jhass: ha ha that was quick :)
<jhass>
huh? no, some time ago already
<daneb>
jhass: oh, and so I assume he said no.....
<jhass>
well, he's pro parser generator, crystal is contra parser generator, he has his own pet language...
<strcmp1>
jhass, what do you think of oga
bcardiff has joined #crystal-lang
<jhass>
I think it's cool
<jhass>
hence I suggested to do something like that instead of a libxml2 binding
<strcmp1>
omfg js has me so confused right now
icezimm has joined #crystal-lang
icezimm has quit [Quit: Leaving.]
isjaylee1 has joined #crystal-lang
NeverDie has joined #crystal-lang
<wmoxam>
jhass: ok, thanks
isjaylee1 has left #crystal-lang [#crystal-lang]
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: http://git.io/vLQPc
<crystal-gh>
crystal/master 13f99f1 Ary Borenszweig: Fixed #840: XML document namespace (and others) should be nil
asterite has joined #crystal-lang
<asterite>
Maybe we should try gitter. It's free, you enter the github project's chat page very fast (no need for an irc client, you can do it from your browser) and it seems to have some nice goodies
<jhass>
do what you want, but you won't get me over
<jhass>
kiwiirc.com and irccloud.com are two popular alternative webclients if it's about that
<asterite>
In fact I'm using a web client right now, I'm having issues with desktop clients from my home (don't know why and lazy to find why)
<asterite>
I'm using webchat.freenode.net
<jhass>
thing is I would never want to use a web client for this type of communication, my IRC client is highly customized to it
<jhass>
and no, gitters IRC bridge is not an option, it's by design a crutch
<jhass>
and I don't even blame them for that
datanoise has joined #crystal-lang
<strcmp1>
asterite, you're on OSX right? if you want a friendly IRC client, try limechat.
<strcmp1>
i also prefer IRC over gitter although i havent tried gitter yet tbh, because IRC is just fine, some projects have both.
asterite1 has joined #crystal-lang
asterite1 has quit [Client Quit]
<asterite>
Cool, let me try it
<jhass>
I also think the target audience is quite different
<jhass>
IRC is still 60-70% user support while gitter seems 90% collaborator communication
<jhass>
and I'm here for the former
<strcmp1>
meh, i wouldn't categorize either like that but fine :P
<jhass>
well, I tried to make it a relative statement with those percentages coming from my ass ;)
<strcmp1>
lol
<asterite>
:-D
<unshadow>
asterite: Gitter !!! I tried to tell jhass to move but he is too stuborn
<asterite>
Well, but it's true that we need a good reason to have yet another communication channel
<unshadow>
asterite: gitter is more for a development chat, it's really nice with the code parsing, github integration etc ..
<unshadow>
jhass: I went over this post, it seems that most of the argument is "supporting regular users who has no github accounts", well, I can relate to that, but, I did see no one actually tried it, which is quite a shame
<unshadow>
knowing the alternatives is what brought me to Crystal from Ruby, it nice to see what else is out there
<jhass>
not saying it fully applies here, hence why I didn't bring it up myself
<strcmp1>
gitter has an IRC bridge too, so thats a +1
<jhass>
I bet it's as good as slacks
<strcmp1>
=]
<jhass>
which is hated by everybody that mentioned that they use it and only used because running another client is worse
<strcmp1>
i use slack through irc and yup its crap, i mean you dont see anything bots say for one.
<strcmp1>
there's notification bots or w/e, they're totally absent in the irc bridge.
<jhass>
for me it's that I have no reason to swap an open protocol with 30 years of ecosystem with a proprietary one with vendor lock in, just for some fancy "we embed stuff and have emojis!"
<jhass>
jeez, I mean we all escaped ICQ, didn't we?
<jhass>
or AIM or whatever
<strcmp1>
dont miss the emojis but github embeds is useful
<strcmp1>
tbh if you find the right irc client you can probably have both :P
<thor77>
jhass: huh, does your bot support plugin-reloading?
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<jhass>
configuration wise and per channel plugin activation
<jhass>
no code (re)loading
asterite has quit [Ping timeout: 250 seconds]
NeverDie has joined #crystal-lang
shama has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 248 seconds]
asterite has joined #crystal-lang
<asterite>
what do you guys like about crystal?
<jhass>
duck typing in a compiled language & compile time dynamism/meta programming capabilities
<jhass>
& familiar syntax for the rubyist
jua_ has joined #crystal-lang
<BlaXpirit>
"duck typing in a compiled language" is pretty much it L|
<BlaXpirit>
:|
<BlaXpirit>
oh, asteritе is using a client now
<jhass>
yeah, I think it was an elaborate "test" message :P
<BlaXpirit>
:D
<BlaXpirit>
well, there are a lot of things I like but nothing stands out as much
<BlaXpirit>
does LLVM have an... uhh... VM?
<BlaXpirit>
shouldn't compile-time code execution be possible?
<jhass>
LLVM has a JIT
<jhass>
but you can't just throw an IR into it afaik
<jhass>
*any
<havenwood>
asterite: Speed of course and ease of deployment is another big draw. I like the modern, relevant standard library and that I felt productive immediately as a Rubyist.
daneb has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 275 seconds]
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: http://git.io/vLFkP
<crystal-gh>
crystal/master 0ec80e6 Ary Borenszweig: Use a single buffer for buffered IO
ryanf has joined #crystal-lang
Codcore has quit [Ping timeout: 246 seconds]
jua_ has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
<crystal-gh>
[crystal] genericpenguin opened pull request #843: Fixed quoted cell not appending comma if cell is first in row. (master...master) http://git.io/vLFmY
<crystal-gh>
[crystal] genericpenguin closed pull request #843: Fixed quoted cell not appending comma if cell is first in row. (master...master) http://git.io/vLFmY