pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter>
<asterite> We'll work with waj on HTTP server streaming after 0.19.4. Should be really easy: split HTTP::Request into HTTP::Client::Request and HTTP::Server::Request. The server request always has a body_io, and a body which consumes the IO on demand... but if you don't invoke "body" it never gets consumed into a string. This is kind of similar to our current HTTP::Client::Response.
<FromGitter>
<asterite> But we wanted to do first the atomic ops so we can work on this and parallelism... in parallel :-P
<Papierkorb>
asterite: Do you know of a trick how I could compile a crystal program without any requiring any File IO?
<Papierkorb>
as in, not require'ing at all, so that it does not try to link against anything
<BlaXpirit>
Papierkorb, you can try to give it an empty prelude
<Papierkorb>
BlaXpirit: That's what I do, but string/builder requires IO, so in effect, I can't use string interpolation and with that, almost no to_s() methods
<BlaXpirit>
Papierkorb, well what did you expect lol
<BlaXpirit>
you can manually re-require some stuff, it's all still there
<Papierkorb>
... That's what I do?
<Papierkorb>
and "io" then goes on to require file stuff which will then lead the linker to complain that there's no file API in a operating system kernel, which is correct.
<Papierkorb>
or it complains about that libevent stuff
A124 has quit [Ping timeout: 244 seconds]
<BlaXpirit>
sigh, that's just not something crystal is usable for
<crystal-gh>
[crystal] masukomi opened pull request #3392: improved error message in raise_not_initialized_in_all_initialize (master...better_not_initialized_message) https://git.io/vPldM
<Papierkorb>
you can't say until you try. In fact, it works - except that stuff
A124 has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]
miketheman has quit [*.net *.split]
maxpowa has quit [*.net *.split]
aemadrid has quit [*.net *.split]
jwaldrip has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
miketheman_ has joined #crystal-lang
maxpowa has joined #crystal-lang
miketheman_ is now known as miketheman
jwaldrip has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
aemadrid has joined #crystal-lang
snsei has joined #crystal-lang
Philpax_ has quit [Ping timeout: 256 seconds]
snsei has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
<Papierkorb>
paulcsmith: what's the error you're getting?
<Papierkorb>
ah there it is
<FromGitter>
<paulcsmith> So I did notice that if I don't use the NamedTuple style and do `render :show, Announcement.new` it works fine. Not sure why that is though
<Papierkorb>
paulcsmith: The thing is, if you want to accept both keyword args and non-keyword args, you have to use (action_name, *args, **kwargs), and then splat them with the same asterix's
<FromGitter>
<paulcsmith> Papierkorb: Yeah double asterisks worked, but as you said then it doesn't work with `render :show, Announcement.new`
<FromGitter>
<paulcsmith> I'm not sure I understand "then splat them with the same asterix's"?
<Papierkorb>
as in: the_call({{ *args }}, {{ **kwargs }})
<FromGitter>
<paulcsmith> Ok I'll give that a shot. Thanks for the help!
paulcsmith_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb>
cheers
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
paulcsmith_ has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
<FromGitter>
<paulcsmith> Is it possible to get a list of methods (as Symbols) in macro that a type defines? I tried `{{@type.methods}}` but that seems to return the methods and the method body :S
<BlaXpirit>
paulcsmith, it returns objects that represent the methods, they just happen to have the string interpretation as the reconstructed method body
<mrslowly>
oh I didn't even think to check the docs, thanks
<FromGitter>
<johnjansen> get used to doing exactly that … theres alot of content, and subtle differences to Ruby (if you have experience there)
<mrslowly>
yeah I was just looking at awesome-crystal/crystalshards.xyz. I am from ruby so ill just look at the docs
avdi has joined #crystal-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
kiliankoe has joined #crystal-lang
A124 has quit [*.net *.split]
onionhammer1 has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
ryanf has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
leafybasil has quit [*.net *.split]
badeball has quit [*.net *.split]
mroth has quit [*.net *.split]
woodruffw has quit [*.net *.split]
dzv_ has quit [*.net *.split]
hmans has quit [*.net *.split]
mjblack has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
fedruantine_ has quit [*.net *.split]
leex has quit [*.net *.split]
jamie_ca_ has quit [*.net *.split]
mose has quit [*.net *.split]
pataphysics has quit [*.net *.split]
endou_ has quit [*.net *.split]
badeball has joined #crystal-lang
leafybasi has joined #crystal-lang
endou has joined #crystal-lang
leex has joined #crystal-lang
pleiosaur has joined #crystal-lang
onionhammer1 has joined #crystal-lang
pataphysics has joined #crystal-lang
dzv_ has joined #crystal-lang
A124 has joined #crystal-lang
ryanf has joined #crystal-lang
jamie_ca has joined #crystal-lang
mjblack has joined #crystal-lang
mose has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
justinmcp has joined #crystal-lang
woodruffw has joined #crystal-lang
hmans has joined #crystal-lang
[spoiler] has joined #crystal-lang
guilleiguaran__ has quit [Write error: Connection reset by peer]
jwaldrip has quit [Write error: Connection reset by peer]
aemadrid has quit [Write error: Connection reset by peer]
danzilio_ has quit [Ping timeout: 250 seconds]
mgarciaisaia has quit [Read error: Connection timed out]
mgarciaisaia has joined #crystal-lang
fedruantine has joined #crystal-lang
grindhold has quit [*.net *.split]
BlaXpirit has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
early` has quit [*.net *.split]
dostoyevsky has joined #crystal-lang
BlaXpirit has joined #crystal-lang
grindhold has joined #crystal-lang
early has joined #crystal-lang
jokke has quit [Ping timeout: 251 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mose has quit [Changing host]
mose has joined #crystal-lang
aemadrid has joined #crystal-lang
mroth has joined #crystal-lang
soveran has quit [Remote host closed the connection]
jokke has joined #crystal-lang
danzilio_ has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
asterite has quit [*.net *.split]
rkeene has quit [*.net *.split]
rtl has quit [*.net *.split]
swav has quit [*.net *.split]
nickc2 has quit [*.net *.split]
FromGitter has quit [*.net *.split]
pabs has quit [*.net *.split]
dom96 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
wmoxam has quit [*.net *.split]
Liothen has quit [*.net *.split]
jhass has quit [*.net *.split]
adam12 has quit [*.net *.split]
braidn has quit [*.net *.split]
tilpner has quit [*.net *.split]
_jungh4ns has quit [*.net *.split]
tliff has quit [*.net *.split]
foca has quit [*.net *.split]
Cyrus has quit [*.net *.split]
trajing has quit [*.net *.split]
tliff has joined #crystal-lang
rtl has joined #crystal-lang
pabs has joined #crystal-lang
Liothen has joined #crystal-lang
trajing has joined #crystal-lang
FromGitter has joined #crystal-lang
jhass has joined #crystal-lang
tilpner has joined #crystal-lang
rkeene has joined #crystal-lang
wmoxam has joined #crystal-lang
adam has joined #crystal-lang
adam is now known as Guest32991
g3funk has joined #crystal-lang
asterite has joined #crystal-lang
foca has joined #crystal-lang
Guest37817 has joined #crystal-lang
Liothen has quit [Changing host]
Liothen has joined #crystal-lang
swav has joined #crystal-lang
oddmunds has joined #crystal-lang
nickc2 has joined #crystal-lang
dom96 has joined #crystal-lang
RX14 has quit [Quit: Fuck this shit, I'm out!]
RX14 has joined #crystal-lang
Kilo`byte has joined #crystal-lang
elomatreb_ has joined #crystal-lang
Tophe has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
Kilobyte22 has quit [*.net *.split]
elomatreb has quit [*.net *.split]
Tophe_ has joined #crystal-lang
_jungh4ns has joined #crystal-lang
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greenbigfrog has joined #crystal-lang
aemadrid has joined #crystal-lang
aemadrid has quit [Changing host]
mroth has joined #crystal-lang
mroth has quit [Changing host]
danzilio_ has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
danzilio_ has quit [Changing host]
guilleiguaran__ has quit [Changing host]
greenbigfrog has joined #crystal-lang
greenbigfrog has quit [Changing host]
bjz has joined #crystal-lang
havenwood has quit [Remote host closed the connection]
Tophe_ has quit [*.net *.split]
rkeene has quit [*.net *.split]
swav has quit [*.net *.split]
onionhammer1 has quit [*.net *.split]
leex has quit [*.net *.split]
leafybasi has quit [*.net *.split]
badeball has quit [*.net *.split]
m94asr has quit [*.net *.split]
coderobe has quit [*.net *.split]
jokke has quit [*.net *.split]
BlaXpirit has quit [*.net *.split]
fedruantine has quit [*.net *.split]
hmans has quit [*.net *.split]
justinmcp has quit [*.net *.split]
dzv_ has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
bjmllr has quit [*.net *.split]
CompanionCube has quit [*.net *.split]
ssvb has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
rtl has quit [*.net *.split]
Guest32991 has quit [*.net *.split]
pawnbox has quit [*.net *.split]
gewo has quit [*.net *.split]
Guest37817 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
grindhold has quit [*.net *.split]
mgarciaisaia has quit [*.net *.split]
endou has quit [*.net *.split]
avdi has quit [*.net *.split]
vifino has quit [*.net *.split]
Yxhvd has quit [*.net *.split]
Raimondi has quit [*.net *.split]
bazaar has quit [*.net *.split]
danzilio_ has quit [Ping timeout: 250 seconds]
Guest32991 has joined #crystal-lang
gewo has joined #crystal-lang
pawnbox has joined #crystal-lang
rtl has joined #crystal-lang
pleiosaur has joined #crystal-lang
jokke has joined #crystal-lang
leafybasi has joined #crystal-lang
leex has joined #crystal-lang
onionhammer1 has joined #crystal-lang
rkeene has joined #crystal-lang
badeball has joined #crystal-lang
swav has joined #crystal-lang
Tophe_ has joined #crystal-lang
m94asr has joined #crystal-lang
coderobe has joined #crystal-lang
oddmunds has joined #crystal-lang
Guest37817 has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
grindhold has joined #crystal-lang
endou has joined #crystal-lang
avdi has joined #crystal-lang
vifino has joined #crystal-lang
Yxhvd has joined #crystal-lang
Raimondi has joined #crystal-lang
bazaar has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
Guest37817 has quit [Max SendQ exceeded]
vifino has quit [Max SendQ exceeded]
Raimondi has quit [Remote host closed the connection]
<FromGitter>
<cjgajard> @paulcsmith there are 2 things.`macro inherited` get run at line 13, when my_cool_method does not exist yet, you have to escape the macro (`\{{ }}` or `\{% %}`) in order to delay is evaluation (making `method_names_in_inherited` a `macro def`).. on the other hand `macro method_names` is "class-level" but `def method_names_in_inherited` is "instance-level" (so have to call it with `Task.new.method_names_in_inherited`
Raimondii has joined #crystal-lang
Guest37817 has joined #crystal-lang
Raimondii is now known as Raimondi
danzilio_ has joined #crystal-lang
vifino has joined #crystal-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<paulcsmith> @cjgajard Thanks so much for the feedback. You're right about calling it at a class level on accident. Oops :) I tried using a `\{{ }}` and that did delay things, but now I'm trying an example that's a bit more complicated and using the `\` seems to escape the macro or something :S
<FromGitter>
<paulcsmith> Also where did you find out about delaying macro execution? I went over the macro guides a few times and didn't see anything about that. Maybe I'm looking in the wrong place :)
<FromGitter>
<paulcsmith> Error in that macro is `Syntax error in expanded macro: inherited:3: unexpected token: {% (expecting when, else or end)`. Not sure why it would expect a `when, else or end` :S
soveran has joined #crystal-lang
<mrslowly>
nevermind, it was under "visibility", not scope
<mrslowly>
So crystal doesn't support global variables?