00:07
NeverDie has joined #crystal-lang
00:07
NeverDie has quit [Client Quit]
00:14
RX14 has quit [Ping timeout: 252 seconds]
00:14
RX14 has joined #crystal-lang
00:15
n0xff has quit [Ping timeout: 252 seconds]
00:15
n0xff has joined #crystal-lang
00:15
juancate has quit [Ping timeout: 252 seconds]
00:17
juancate has joined #crystal-lang
00:36
<
pragmatism >
It's everywhere!
00:38
waj has joined #crystal-lang
00:42
waj has quit [Remote host closed the connection]
00:52
waj has joined #crystal-lang
01:14
CraigBuchek has joined #crystal-lang
01:16
waj has quit [Remote host closed the connection]
01:20
greengriminal has joined #crystal-lang
01:27
waj_ has joined #crystal-lang
01:36
NeverDie has joined #crystal-lang
01:46
havenwood has joined #crystal-lang
02:04
waj_ has quit [Remote host closed the connection]
02:09
havenn has joined #crystal-lang
02:11
havenwood has quit [Ping timeout: 250 seconds]
02:22
waj_ has joined #crystal-lang
02:36
Philpax has joined #crystal-lang
02:41
<
caryanne >
how y'all doin'
02:46
<
caryanne >
proggin' some crystal
02:46
<
caryanne >
and having a great fucking time
02:48
greengriminal has quit [Quit: Leaving]
02:51
nakilon has joined #crystal-lang
03:01
Philpax has quit [Read error: Connection reset by peer]
03:02
kulelu88 has quit [Quit: Leaving]
03:31
waj_ has quit [Remote host closed the connection]
04:34
greengriminal has joined #crystal-lang
04:38
greengriminal has quit [Client Quit]
05:02
trapped has joined #crystal-lang
05:09
<
crystal-gh >
[crystal] bcardiff opened pull request #1552: add deflate http handler (master...http-deflate-handler)
http://git.io/vnESN
05:39
caryanne has quit [Ping timeout: 246 seconds]
05:51
caryanne has joined #crystal-lang
05:54
nakilon has quit [Ping timeout: 256 seconds]
06:26
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:34
pawnbox has joined #crystal-lang
06:51
Ven has joined #crystal-lang
06:51
havenwood has joined #crystal-lang
07:03
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:09
<
pawnbox >
how to make recently compiled crystal to work throughout the system.
07:09
CraigBuchek has quit [Quit: Leaving.]
07:09
<
pawnbox >
like replace the outdated system version
07:19
Philpax has joined #crystal-lang
07:20
Ven has joined #crystal-lang
07:23
Ven has quit [Client Quit]
07:28
pawnbox has quit [Remote host closed the connection]
07:30
<
trapped >
vifino: why coke instead of coffee?
07:33
Philpax has quit [Read error: Connection reset by peer]
07:34
Philpax has joined #crystal-lang
07:36
Philpax has quit [Read error: Connection reset by peer]
07:37
Philpax has joined #crystal-lang
07:41
jtarchie has quit [K-Lined]
07:41
guilleiguaran__ has quit [K-Lined]
07:41
willl has quit [K-Lined]
07:41
emmanueloga has quit [K-Lined]
07:41
chdorner has quit [K-Lined]
07:41
iamstef has quit [K-Lined]
07:41
danzilio has quit [K-Lined]
07:41
bjmllr has quit [K-Lined]
07:41
aemadrid has quit [K-Lined]
07:41
avdi has quit [K-Lined]
07:41
manveru has quit [K-Lined]
07:41
n1ftyn8_ has quit [K-Lined]
07:43
manveru has joined #crystal-lang
08:18
chdorner has joined #crystal-lang
08:34
pawnbox has joined #crystal-lang
08:35
<
crystal-gh >
crystal/master bde3711 Adler: add ecr library usage
08:35
<
crystal-gh >
crystal/master 9d25cf5 Adler: Update ECR introduction & add explanations to <% %> <%= %> syntax
08:35
<
crystal-gh >
crystal/master 5e53fb1 Jonne Haß: Merge pull request #1547 from adlerhsieh/master...
08:37
leafybasil has quit [Remote host closed the connection]
08:37
leafybasil has joined #crystal-lang
08:42
leafybasil has quit [Ping timeout: 252 seconds]
08:51
<
jokke >
it segfaults if i try to run it
08:52
<
jokke >
if i use the function in c there's no problem though
08:55
leafybasil has joined #crystal-lang
09:00
<
jhass >
jokke: FILE is not an FD iirc
09:01
<
jhass >
it's the struct fopen returns or something
09:03
<
jhass >
jokke: check fdopen(3)
09:04
<
jhass >
trapped: sorry, rebuilding whitelist atm :P
09:04
<
jhass >
oh, actually...
09:05
<
jhass >
well that's weird
09:09
<
trapped >
jhass: ping me when whitelist is rebuilt
09:09
<
jhass >
gotta fix a bug in crystal afterwards and workaround it in carcin first :P
09:24
pawnbox has quit [Remote host closed the connection]
09:26
havenwood has quit [Ping timeout: 255 seconds]
09:28
<
crystal-gh >
[crystal] jhass opened pull request #1554: Handle signal exits from commands run by the compiler (master...handle_signal_exits_from_linker)
http://git.io/vnuD6
09:31
Philpax has quit [Read error: Connection reset by peer]
09:46
danzilio has joined #crystal-lang
09:47
<
jokke >
jhass: hmm now
_something_ happens, as in no segfault, but it's still broken somehow
09:48
<
jokke >
jhass: here's the thing: It worked great with the trick of reopening STDOUT as STDERR and reopening STDIN as /dev/tty
09:48
<
jokke >
only problem: after i'm finished showing the curses stuff i need to print something to stdout
09:48
<
jokke >
to the
_original_ stdout
09:49
<
jhass >
gotta keep a copy of that then
09:49
<
jokke >
i already tried cloning STDOUT before reopening and then putsing to that clone
09:49
<
jhass >
simply .clone? I don't think that's overloaded properly
09:50
<
jhass >
you want to open /dev/null or something and reopen that FD from stdout
09:50
<
jhass >
or overload .clone to properly dup it
09:50
<
jokke >
didn't think of that!
09:52
aemadrid has joined #crystal-lang
09:52
guilleiguaran__ has joined #crystal-lang
09:52
emmanueloga has joined #crystal-lang
09:52
bjmllr has joined #crystal-lang
09:53
iamstef has joined #crystal-lang
09:53
avdi has joined #crystal-lang
09:53
<
jokke >
hm not even that worked..
09:54
<
jokke >
i can puts but it seems to dissappear
09:54
<
jokke >
somewhere in the fd nirvana
09:54
<
jhass >
dev_null.reopen(STDOUT); STDOUT.reopen(tty); STDOUT.reopen(dev_null) ?
09:54
<
trapped >
what's the "recommended" way to convert a Slice(UInt8) to some other type? e.g. Int32
09:55
<
jhass >
trapped: you could just cast the pointer
09:55
willl has joined #crystal-lang
09:55
n1ftyn8_ has joined #crystal-lang
09:55
<
jhass >
(.pointer as Pointer(Int32)).value
09:59
<
jokke >
jhass: omg!
09:59
<
jokke >
with STDOUT.reopen(stdout) it works!
10:00
<
jhass >
should probably the default
10:07
jtarchie has joined #crystal-lang
10:08
<
trapped >
jhass: what about converting it to a string
10:09
<
jhass >
String.new(slice) or String.new(slice.pointer(0))
10:09
<
trapped >
ok thanks
10:42
greenarrow has joined #crystal-lang
10:44
<
greenarrow >
problem is in the comment of the gist
10:49
<
greenarrow >
nvm fixed
10:49
<
jhass >
greenarrow: api is an instance method, you try to call it from a class method
10:49
<
greenarrow >
yeah..
10:49
<
greenarrow >
thanks
10:49
<
jhass >
uh, overlooked the fixed, sorry :D
11:04
Ven has joined #crystal-lang
11:05
Ven has quit [Client Quit]
11:08
Ven has joined #crystal-lang
11:09
Ven has quit [Client Quit]
11:18
pawnbox has joined #crystal-lang
11:27
<
pawnbox >
Should directory First be created or not.
11:29
<
jhass >
pawnbox: no it should check if it exists (regardless of being a file or directory) and print a nice error message instead
11:29
<
pawnbox >
so if a executable with same name exits it shouldprint a nice error?
11:30
<
jhass >
I'd say even if a directory with the same name already exists, yes
11:31
<
pawnbox >
Sry for being uninformed, but what wrong with creating a directory if a file with same name exits?
11:31
<
vegai >
is it so that the compiler doesn't check code that isn't called from any place?
11:32
Ven has joined #crystal-lang
11:33
<
jhass >
pawnbox: it's impossible
11:33
<
jhass >
pawnbox: try: touch foo; mkdir foo
11:33
<
vegai >
will that be a permanent feature?
11:34
<
jhass >
vegai: probably, it allows to be a real lot faster
11:34
<
jhass >
imagine a full Gtk binding with wrappers for example
11:34
<
vegai >
does it happen because the compiler drops everything it doesn't use?
11:34
<
jhass >
tens of thousands loc of generated code
11:34
<
vegai >
well, I guess in practice it shouldn't be a problem, since I should have good test coverage anyway
11:34
<
vegai >
it was just a bit surprising when I first saw it
11:35
<
vegai >
might be a good idea to document the fact
11:35
<
jhass >
basically, it's not so much actively dropping than not actively doing type inference and semantic checks for it in the first place
11:36
<
pawnbox >
jhass: thanks
11:36
<
vegai >
jhass: do you think it'd be possible to have it as an option?
11:36
<
jhass >
I'm not sure, gut feeling says yes
11:36
<
vegai >
I imagine it'd be a nice piece of tooling, to be able to run simple checks every time the code changes
11:37
<
vegai >
over the whole codebase, regardless of whether it's being called
11:37
<
vegai >
rust has this thing called racer which does pretty much that
11:37
<
vegai >
quite handy
11:37
<
jhass >
there's also the issue that if you have say def foo(bar) bar.to_s; end; and never call that
11:37
<
jhass >
you have no idea what bar is
11:37
<
jhass >
or could be
11:37
<
jhass >
so you also have no idea if it responds to to_s
11:37
greenarrow has quit [Quit: 500]
11:38
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:39
<
jhass >
so we maybe could do it for things we can fully type, as a tool
11:39
<
jhass >
but I'm not sure if it's worth that much after all
11:39
<
jhass >
a duck typed language will always need tests for all valid inputs
11:47
greenarrow has joined #crystal-lang
12:20
greenarrow has quit [Quit: 500]
12:23
Ven has joined #crystal-lang
12:24
Ven has quit [Client Quit]
12:24
greenarrow has joined #crystal-lang
12:50
Ven has joined #crystal-lang
12:53
Ven has quit [Client Quit]
13:11
<
vifino >
trapped: Because I drink soda more often. I only drink coffee once every day.
13:13
<
greenarrow >
Is there a shorter way to write this using JSON::Mapping inside the json_mapping method
13:13
<
trapped >
isn't coffee better for your health?
13:13
<
greenarrow >
poster_path: {type: String, nilable: true}
13:14
<
greenarrow >
thanks
13:14
<
jhass >
I guess the mapping could special case something like poster_path: String?, but it doesn't atm
13:15
<
greenarrow >
yeah tried that blew up
13:19
<
greenarrow >
wonder how easy it will be to implement I made a issue
13:21
<
jhass >
>> {{(String?).class_name}}
13:22
<
jhass >
>> {{(String|Nil).class_name}}
13:22
<
jhass >
>> macro class_name(x); {{x.class_name}}; end; class_name String?
13:23
<
jhass >
>> macro class_name(x); {{x.class_name}}; end; class_name(String?)
13:23
<
jhass >
>> macro class_name(x); {{x.class_name}}; end; class_name(String|Nil)
13:23
<
greenarrow >
Nice result :)
13:24
<
jhass >
nah I know, it didn't enter the type grammar
13:24
<
jhass >
but that means {foo: String?} won't work either
13:24
<
jhass >
so sorry but it doesn't work
13:25
<
greenarrow >
String? is suppose to work but doesnt?
13:26
<
jhass >
>> macro class_name(h); {% for name, v in h %} {{v.class_name}}; {% end %}; end; class_name({foo: String?})
13:26
<
jhass >
String? is only valid in the type grammar
13:26
<
greenarrow >
in docs it says String? is just short for String | Nil
13:26
<
jhass >
so foo :: here, or def foo(bar : here) : here
13:28
<
jhass >
>> [foo :: String]
13:28
<
jhass >
>> [foo :: String?]
13:31
<
jhass >
trapped: presumably? would be a bug if so
13:32
<
jhass >
oO why do you +x everything
13:32
<
trapped >
those are the only lines in the file where table_path is referenced and the compiler says "in ./src/fs_adapter/driver.cr:164: undefined method 'table_path' (if you declared 'table_path' in a suffix if, declare it in a regular if for this to work)"
13:33
<
trapped >
jhass: it's a bug in the sshfs driver i'm using on a windows machine
13:34
<
jhass >
wow that sucks
13:34
<
trapped >
just editing the files marks them as +x for them to be accessible by all users, i think
13:34
<
jhass >
+x means executable
13:34
<
jhass >
+x for directories means listable
13:34
<
jhass >
so on directories it makes sense
13:34
<
jhass >
on all files, very much not so
13:34
<
trapped >
i know, i know
13:34
<
trapped >
that's why it's a bug
13:35
<
trapped >
i believe the driver doesn't actually check whether nodes are directories or files and marks everything
13:37
greengriminal has joined #crystal-lang
13:37
<
jhass >
trapped: so that it doesn't work is definitely a bug, however lock_write(table_path) do works around it. There's also a definitive (separate bug) that the line numbers are off
13:38
<
trapped >
i noticed too that adding parentheses makes it work
13:38
<
trapped >
the line numbers thing is an old bug
13:38
<
trapped >
due to the fact they're checked before expanding macros, i think
13:39
<
jhass >
you reported it?
13:39
<
jhass >
there's been some fixes around that recently
13:39
<
trapped >
i think i did but i'm not sure, and if i did it would've been a month ago or so
13:40
<
jhass >
I don't see any
13:41
<
trapped >
i guess i didn't open it then
13:42
waj_ has joined #crystal-lang
13:42
<
trapped >
probably because most of them kind of "resolved themselves" after a couple git pulls of the compiler
13:45
<
jhass >
I bet I opened issues for you for half of them ;)
13:45
<
trapped >
that's definitely possible
13:46
<
trapped >
honestly if i hadn't so little time i would at least try to help a bit on the compiler but i'm pretty constrained
13:47
<
jhass >
just open issues, not that hard ;)
13:47
<
jhass >
both of these are of type Ary usually fixes the same day
13:48
<
trapped >
have you already reported these two or shall i do it
13:49
<
trapped >
i'll do it as soon as i get back from the grocery store then
13:51
andrew-l has joined #crystal-lang
13:56
kostya has joined #crystal-lang
14:03
Ven has joined #crystal-lang
14:04
Ven has quit [Client Quit]
14:04
NeverDie has joined #crystal-lang
14:11
<
crystal-gh >
[crystal] js-ojus opened pull request #1557: Add difference and symmetric difference operations on `Set` (master...set-ops)
http://git.io/vng8e
14:12
<
andrew-l >
>> 1 + 2
14:15
<
kostya >
>> puts `ls -la`
14:16
<
andrew-l >
just found out about crystal-lang through the NYC.rb mailing list flame war. :-)
14:17
<
andrew-l >
that's a very good design choice. ;-)
14:19
<
kostya >
>> p File.read("/etc/issue")
14:20
Ven has joined #crystal-lang
14:23
Ven has quit [Client Quit]
14:26
havenwood has joined #crystal-lang
14:26
<
jhass >
probably, there's a macro method_missing hook
14:27
<
andrew-l >
cool, i'll have to check out the language more. thanks!
14:31
Ven has joined #crystal-lang
14:34
Ven has quit [Client Quit]
14:35
<
waj_ >
andrew-l: isn't that similar to: socket.gets.try &.capitalize ?
14:37
<
andrew-l >
maybe...? i've only looked at the docs on the site and haven't worked with crystal code yet. (the no-null pointer exception stuck out to me as a great thing!)
14:42
rvchangue has joined #crystal-lang
14:45
waj_ has quit [Remote host closed the connection]
14:55
Ven has joined #crystal-lang
14:56
<
kostya >
make in crystal dir, now broken
14:56
<
kostya >
src/llvm/ext/llvm_ext.cc:2:30: fatal error: llvm/IR/DebugLoc.h: No such file or directory
14:57
<
jhass >
kostya: mmh, maybe missing llvm devel headers?
14:58
<
greenarrow >
whats the most progressed web framework for crystal atm?
14:58
<
jhass >
/usr/include/llvm/IR/DebugLoc.h
14:58
<
jhass >
greenarrow: mmh, probably amethyst, though I like artanis
14:58
Ven has quit [Client Quit]
14:59
<
kostya >
dir /usr/include/llvm-3.5/llvm/IR/ is here, but no file DebugLoc.h
14:59
<
kostya >
maybe need llvm-3.6?
14:59
<
jhass >
mmh, might be, not sure how to check
15:00
<
pawnbox >
>> 1 + "2"
15:00
<
jhass >
pawnbox: did you expect otherwise?
15:01
<
jhass >
Ruby gives you a TypeError
15:01
<
pawnbox >
just exploring DeBot codebase.
15:01
<
jhass >
and yeah, the new wrapper doesn't play well with the old error extraction code, thanks for finding that one
15:02
<
pawnbox >
yeah seems like it.
15:09
waj_ has joined #crystal-lang
15:10
waj_ has quit [Client Quit]
15:12
waj_ has joined #crystal-lang
15:13
pawnbox has quit [Remote host closed the connection]
15:13
waj_ has quit [Client Quit]
15:20
waj has joined #crystal-lang
15:20
vjdhama has joined #crystal-lang
15:25
vjdhama has quit [Remote host closed the connection]
15:29
sasha_ has joined #crystal-lang
15:33
<
greenarrow >
Is it possible to make attributes in json_mapping optional? I get missing json attribute: foo if its not included in the json
15:34
<
jhass >
foo: {type: String, nilable: true}
15:35
<
greenarrow >
How would I do that if it was an array -> genres: Array(Tmdb::Genre)
15:42
<
jhass >
greenarrow: just specify the Array(Tmdb::Genre) as type
15:42
<
jhass >
foo: Bar is merely a shortcut to foo: {type: Bar}
15:44
<
greenarrow >
thanks jhass
15:48
vjdhama has joined #crystal-lang
15:49
<
crystal-gh >
[crystal] adlerhsieh opened pull request #1560: Add documentaion to markdown (master...master)
http://git.io/vn2v6
15:54
<
crystal-gh >
crystal/master bb8ecf1 Ary Borenszweig: Automatically free LLVM memory
15:54
shama has joined #crystal-lang
15:54
Ven has joined #crystal-lang
15:57
Ven has quit [Client Quit]
16:18
Ven has joined #crystal-lang
16:22
Ven has quit [Client Quit]
16:27
NeverDie has joined #crystal-lang
16:27
waj has joined #crystal-lang
16:39
greenarrow has quit [Quit: 500]
16:39
waj has joined #crystal-lang
16:41
NeverDie has joined #crystal-lang
16:50
qard has joined #crystal-lang
17:00
leafybas_ has joined #crystal-lang
17:04
leafybasil has quit [Ping timeout: 240 seconds]
17:04
leafybas_ has quit [Ping timeout: 246 seconds]
17:14
apt-get has joined #crystal-lang
17:16
leafybasil has joined #crystal-lang
17:27
<
jhass >
>> true.to_unsafe
17:27
<
jhass >
mmh, compiler magic I guess
17:33
BlaXpirit has joined #crystal-lang
17:44
<
crystal-gh >
crystal/master ffce807 Ary Borenszweig: Spec: also capture block in describe/context
17:44
<
crystal-gh >
crystal/master 2842fee Ary Borenszweig: Some refactors in spec_helper
17:44
<
crystal-gh >
crystal/master 346be02 Ary Borenszweig: Fixed #1562: print float bug
17:51
havenwood has joined #crystal-lang
17:54
NeverDie has joined #crystal-lang
18:00
kostya has quit [Remote host closed the connection]
18:03
<
crystal-gh >
crystal/master 12d1cc3 Ary Borenszweig: Wrap LibLLVM.add_instr_attribute
18:03
<
crystal-gh >
crystal/master 725fe76 Ary Borenszweig: Fixed #1559: var argument in call should never be considered a call
18:15
kulelu88 has joined #crystal-lang
18:28
greengriminal has quit [Quit: This computer has gone to sleep]
18:33
<
crystal-gh >
crystal/master 9e1ccd6 Ary Borenszweig: Error if doing `private macro` inside a class. Once we define what that would mean we can remove this error.
18:33
<
crystal-gh >
crystal/master 0a572e2 Ary Borenszweig: Fixed #1558: incorrect line number due to \r\n
18:38
<
crystal-gh >
crystal/master f7fa74e Ary Borenszweig: Small fix to previous commit
18:40
<
jhass >
asterite: I've been thinking, on undefined constant errors (at the toplevel/inside classes/modules etc.) wouldn't it be nice to basically dump the current require "stack", that is the path from the file given on the commandline to the file with the error. Is that info even available?
18:41
<
jhass >
trapped: ^ see ;)
18:52
greengriminal has joined #crystal-lang
19:17
<
jhass >
will probably still fail in dozens of ways if you try to use it for a real app though
19:21
<
jokke >
yeah i'll stick to curses for now
19:21
<
jokke >
i'm a console kind of guy anyway :)
19:23
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:25
<
crystal-gh >
[crystal] waterlink opened pull request #1564: [RFC: HTTP::Request] provide uri component accessors (master...http/request/provide-uri-component-accessors)
http://git.io/vnaup
19:34
n0xff has quit [Ping timeout: 240 seconds]
19:37
qard has joined #crystal-lang
19:46
<
crystal-gh >
crystal/master 3d622d4 Ary Borenszweig: Fixed #1553: Provide a variant of `Hash.new` that accepts a size hint
19:50
havenn has joined #crystal-lang
19:50
havenwood has quit [Ping timeout: 264 seconds]
19:58
vjdhama has quit [Remote host closed the connection]
20:02
havenn is now known as havenhaze
20:10
<
jokke >
the second doesn't seem to yield :escape
20:10
<
jhass >
is this the game where you guess error messages? does it contain an e?
20:11
<
jokke >
i think i might know what the problem is
20:11
<
jokke >
in the method calling this i return from the block
20:11
RX14 has quit [Quit: Fuck this shit, I'm out!]
20:12
<
jokke >
and i guess since i pass the block to the second method it just returns from there
20:13
<
jhass >
though I didn't explore if it turns back to no-captured block if you pass a captured block
20:18
<
jokke >
hm so there's no way to do what i want atm?
20:19
RX14 has joined #crystal-lang
20:19
<
jokke >
that's why i like rubys catch throw
20:19
RX14 has quit [Remote host closed the connection]
20:19
<
trapped >
jhass: that was relatively quick i guess
20:19
RX14 has joined #crystal-lang
20:21
<
jhass >
jokke: you can probably forward the block, special do |a, b| block.call(a, b) end
20:21
<
jhass >
or yield a, b, idk
20:23
<
jokke >
seems that i can't
20:29
havenwood has joined #crystal-lang
20:35
NeverDie has joined #crystal-lang
20:55
n0xff has joined #crystal-lang
21:12
sasha_ has quit [Quit: Page closed]
21:21
<
trapped >
somehow i made something segfault
21:36
<
jhass >
build -d foo.cr
21:37
<
jhass >
valgrind ./foo
21:37
<
trapped >
great idea
21:44
havenwood has joined #crystal-lang
21:54
greengriminal has quit [Quit: Leaving]
21:55
NeverDie has joined #crystal-lang
21:55
<
trapped >
there seems to be something in the json deserialization code that makes it silently die
22:03
BlaXpirit has quit [Quit: Konversation]
22:10
<
trapped >
seems like i can't manage to call from_json at all
22:10
<
trapped >
JSON.parse works fine though
22:11
toydestroyer has quit [Ping timeout: 252 seconds]
22:12
havenwood has quit [Ping timeout: 244 seconds]
22:13
toydestroyer has joined #crystal-lang
22:14
Kilo`byte has quit [Ping timeout: 252 seconds]
22:14
rappo has quit [Ping timeout: 252 seconds]
22:14
rappo_ has joined #crystal-lang
22:14
Kilo`byte has joined #crystal-lang
22:18
apt-get has quit [Remote host closed the connection]
22:21
<
trapped >
seems like a missing field without omit_null set makes from_json die silently
22:21
<
trapped >
not completely sure but my code works again
22:22
<
jhass >
as always, make a testcase that shows the bug and open an issue ;)
22:27
<
trapped >
is there any way to set a global variable at compile time?
22:36
<
jhass >
you mean as a commandline option?
22:37
<
trapped >
or through env
22:37
<
jhass >
there's -D to set flags for ifdef
22:37
<
jhass >
and there's env as macro method
22:37
<
trapped >
env as macro method might be what i'm looking for
22:39
<
trapped >
by the way, a program written in crystal probably just saved a life
22:40
rappo_ is now known as rappo
22:40
<
trapped >
we're using it for an experimental web interface to mobile network providers' data on cell towers' locations
22:41
<
trapped >
and the local police is trying it out to look for missing or lost people using cellphone usage data
22:42
<
jhass >
oO you put it into prod for client stuff?
22:42
<
jhass >
that's brave
22:43
<
trapped >
it's technically not prod
22:43
<
trapped >
they asked even if i told them it wasn't actually stable and stuff
22:45
<
trapped >
for some reason i can't replicate the json issue, maybe i reduced the code too much
22:45
<
trapped >
either way i'm going to sleep and see if i can open an issue tomorrow
22:45
<
jhass >
and sleep well
22:46
trapped has quit [Quit: int random { /* ensure randomness */ return 3; }]
22:51
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
22:52
NeverDie has joined #crystal-lang
23:11
jeromegn has quit [Quit: jeromegn]
23:14
NeverDie has joined #crystal-lang
23:25
jeromegn has joined #crystal-lang