00:09
soveran has joined #crystal-lang
00:09
soveran has joined #crystal-lang
00:09
soveran has quit [Changing host]
00:14
soveran has quit [Ping timeout: 265 seconds]
00:19
<
crystal-gh >
[crystal] wmoxam opened pull request #3326: [WIP] Adds support for OpenBSD (master...openbsd)
https://git.io/viXYJ
00:38
<
Papierkorb >
C structs are completely broken :(
00:40
<
Papierkorb >
Can someone try that code with their installation please?
00:41
pawnbox has joined #crystal-lang
00:45
ebraga has quit [Ping timeout: 250 seconds]
00:46
pawnbox has quit [Ping timeout: 248 seconds]
00:48
Philpax has joined #crystal-lang
00:49
<
wmoxam >
Papierkorb: yeah, I get the same
00:49
<
Papierkorb >
"the same"?
00:51
<
Papierkorb >
Thanks. Will open a issue then
00:52
<
Papierkorb >
HEAD is broken too.
01:00
<
Papierkorb >
wmoxam: which crystal version do you have?
01:11
soveran has joined #crystal-lang
01:16
soveran has quit [Ping timeout: 265 seconds]
01:20
pawnbox has joined #crystal-lang
01:25
pawnbox has quit [Ping timeout: 265 seconds]
01:31
onethirtyfive has quit [Remote host closed the connection]
01:35
Oliphaunte has joined #crystal-lang
01:48
qard has joined #crystal-lang
01:58
<
wmoxam >
Papierkorb: HEAD
01:58
snsei has joined #crystal-lang
01:58
<
wmoxam >
I can try on 0.19.2 if you like
02:10
pawnbox has joined #crystal-lang
02:14
pawnbox has quit [Ping timeout: 265 seconds]
02:51
ponga has joined #crystal-lang
03:09
Oliphaunte has quit [Remote host closed the connection]
03:18
pawnbox has joined #crystal-lang
03:23
pawnbox has quit [Ping timeout: 265 seconds]
03:46
dhk has joined #crystal-lang
03:57
Oliphaunte has joined #crystal-lang
03:58
pawnbox has joined #crystal-lang
04:01
Oliphaunte has quit [Remote host closed the connection]
04:02
pawnbox has quit [Ping timeout: 244 seconds]
04:05
dhk has quit [Quit: Leaving]
04:14
soveran has joined #crystal-lang
04:14
soveran has quit [Changing host]
04:14
soveran has joined #crystal-lang
04:18
soveran has quit [Ping timeout: 240 seconds]
04:37
pawnbox has joined #crystal-lang
04:42
pawnbox has quit [Ping timeout: 248 seconds]
04:51
Oliphaunte has joined #crystal-lang
04:55
pawnbox has joined #crystal-lang
04:59
Oliphaun_ has joined #crystal-lang
05:00
Oliphaunte has quit [Read error: Connection reset by peer]
05:00
kulelu88 has quit [Quit: Leaving]
05:01
phase_ has joined #crystal-lang
06:06
Oliphaun_ has quit [Remote host closed the connection]
06:11
Oliphaunte has joined #crystal-lang
06:14
Oliphaunte has quit [Remote host closed the connection]
06:15
soveran has joined #crystal-lang
06:20
soveran has quit [Ping timeout: 272 seconds]
06:20
snsei has quit [Remote host closed the connection]
06:21
snsei has joined #crystal-lang
06:25
snsei has quit [Ping timeout: 240 seconds]
06:40
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:47
qard has joined #crystal-lang
06:57
Philpax has quit [Read error: Connection reset by peer]
07:08
pawnbox has quit [Remote host closed the connection]
07:08
pawnbox has joined #crystal-lang
07:23
_whitelogger has quit [K-Lined]
14:36
_whitelogger has joined #crystal-lang
14:36
Philpax has quit [Ping timeout: 255 seconds]
14:42
<
crystal-gh >
crystal/master 25a52af Ary Borenszweig: Small refactor
14:58
snsei has quit [Remote host closed the connection]
15:18
pawnbox has quit [Remote host closed the connection]
15:28
pawnbox has joined #crystal-lang
15:32
pawnbox has quit [Ping timeout: 248 seconds]
15:43
soveran has joined #crystal-lang
15:47
soveran has quit [Ping timeout: 255 seconds]
16:02
<
FromGitter >
<jwoertink> then in another project, I add this icr as a dependency. When I use `path` and point to my local copy, the postinstall runs just fine and everything is awesome
16:03
<
FromGitter >
<jwoertink> however, when I set it to my github repo and that branch, everything installs just fine, but the postinstall doesn't run
16:03
<
FromGitter >
<jwoertink> Is there something in particular when it comes to it being remote?
16:03
<
FromGitter >
<jwoertink> The weird thing is, I could have sworn this worked at some point, but now it's not..
16:11
Oliphaunte has joined #crystal-lang
16:42
pawnbox has joined #crystal-lang
16:51
Oliphaunte has quit [Remote host closed the connection]
16:54
Oliphaunte has joined #crystal-lang
16:58
Oliphaunte has quit [Ping timeout: 248 seconds]
16:59
globalkeith has joined #crystal-lang
16:59
<
FromGitter >
<jwoertink> interesting... So I just pushed my branch over to master. That was the only thing I saw different. It actually ran my postinstall once I had it set to master branch. However, it still failed
17:00
globalkeith has quit [Remote host closed the connection]
17:08
soveran has joined #crystal-lang
17:08
soveran has joined #crystal-lang
17:08
soveran has quit [Changing host]
17:10
soveran has quit [Remote host closed the connection]
17:11
phase_ has joined #crystal-lang
17:13
<
FromGitter >
<jwoertink> oh... the version...
17:14
phase_ has quit [Client Quit]
17:14
<
FromGitter >
<jwoertink> Anyone know where it would pull that 0.2.8 version from? I made sure to delete `.shards` and `libs` folders.
17:14
<
FromGitter >
<jwoertink> there must be a cache somewhere that looks for the older version
17:15
<
FromGitter >
<sdogruyol> Shard. Lock
17:15
<
FromGitter >
<jwoertink> I deleted that too
17:15
<
FromGitter >
<sdogruyol> Hmm
17:17
<
FromGitter >
<jwoertink> Tried to specify a static version
17:19
<
FromGitter >
<jwoertink> ohh.... does it pull this from the releases?
17:21
<
BlaXpirit >
jwoertink, yes, unless u specify branch: master
17:21
<
FromGitter >
<jwoertink> ahhh.. interesting. I assumed branch: master was default. Good to know!
17:26
<
FromGitter >
<jwoertink> Sweet! that worked :smile:
17:27
leftylink has quit [*.net *.split]
17:27
mose has quit [*.net *.split]
17:27
wmoxam has quit [*.net *.split]
17:27
fedruantine has quit [*.net *.split]
17:29
mose has joined #crystal-lang
17:29
fedruantine has joined #crystal-lang
17:29
leftylink has joined #crystal-lang
17:29
wmoxam has joined #crystal-lang
17:29
Oliphaunte has joined #crystal-lang
17:31
Oliphaunte has quit [Remote host closed the connection]
17:33
Oliphaunte has joined #crystal-lang
17:42
Oliphaunte has quit [Remote host closed the connection]
17:45
[spoiler] has joined #crystal-lang
18:03
Oliphaunte has joined #crystal-lang
18:04
pawnbox has quit [Remote host closed the connection]
18:04
pawnbox has joined #crystal-lang
18:11
soveran has joined #crystal-lang
18:15
soveran has quit [Ping timeout: 240 seconds]
18:15
pawnbox has quit [Remote host closed the connection]
18:16
pawnbox has joined #crystal-lang
18:19
matp has quit [Excess Flood]
18:23
soveran has joined #crystal-lang
18:23
[spoiler] has quit [Ping timeout: 244 seconds]
18:26
[spoiler] has joined #crystal-lang
18:37
soveran has quit [Remote host closed the connection]
18:38
soveran has joined #crystal-lang
18:38
soveran has joined #crystal-lang
18:38
soveran has quit [Changing host]
18:52
soveran has quit [Remote host closed the connection]
18:54
Oliphaunte has quit [Remote host closed the connection]
19:00
Oliphaunte has joined #crystal-lang
19:05
Oliphaunte has quit [Remote host closed the connection]
19:07
Oliphaunte has joined #crystal-lang
19:15
Oliphaunte has quit [Remote host closed the connection]
19:19
phase_ has joined #crystal-lang
19:27
soveran has joined #crystal-lang
19:33
phase_ has quit [Remote host closed the connection]
19:44
qard has joined #crystal-lang
19:44
Oliphaunte has joined #crystal-lang
19:50
Oliphaunte has quit [Remote host closed the connection]
19:50
ponga has quit [Quit: Connection closed for inactivity]
19:55
bew78 has joined #crystal-lang
19:56
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:59
pawnbox has quit [Remote host closed the connection]
20:05
phase_ has joined #crystal-lang
20:09
pawnbox has joined #crystal-lang
20:13
pawnbox has quit [Ping timeout: 255 seconds]
20:15
qard has joined #crystal-lang
20:22
<
BlaXpirit >
is there any way to obtain a constant from a class, having only an instance?
20:23
<
BlaXpirit >
why are constants so limited ;(
20:28
<
BlaXpirit >
holy smokes this is so bad
20:28
<
BlaXpirit >
i even did a good old `def title : String; {% begin %}{{@type.id}}::TITLE{% end %}; end`
20:28
<
BlaXpirit >
aaand undefined constant Demo+::TITLE
20:32
<
RX14 >
BlaXpirit, yeah you need to strip that +
20:32
<
BlaXpirit >
RX14, but it's a subclass, i dont need the base class!
20:33
<
BlaXpirit >
that's my old "override constants" spiel
20:33
<
BlaXpirit >
constants are literally unusable
20:35
<
RX14 >
i wouldn't say literally unusable lol
20:35
<
BlaXpirit >
well, constants in classes
21:05
soveran has quit [Remote host closed the connection]
21:13
bew78 has quit [Ping timeout: 260 seconds]
21:18
spinscale has quit [Remote host closed the connection]
21:26
bew78 has joined #crystal-lang
21:33
<
bew78 >
Hello, in a lib, is there a way to have default value for some specific parameter ?
21:33
<
tilpner >
For a function?
21:34
<
tilpner >
def foo(bar = 42)
21:35
<
tilpner >
If you call foo without an argument, bar will have the value 42.
21:35
<
bew78 >
no, in a lib, so: fun foo(bar : Int32 = 42) gives an error on the =
21:36
<
RX14 >
libs are internal and should be wrapped - the default parameter should be in the wrapping function
21:36
<
tilpner >
Oh, that lib.
21:37
<
bew78 >
ok, it makes sense, thanks !
21:38
pawnbox has joined #crystal-lang
21:39
matp has joined #crystal-lang
21:43
pawnbox has quit [Ping timeout: 255 seconds]
22:05
soveran has joined #crystal-lang
22:10
soveran has quit [Ping timeout: 240 seconds]
22:38
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:50
<
phase_ >
What replaced the `X as T` syntax?
22:51
<
BlaXpirit >
>> 4 as Int64
22:56
<
bew78 >
for a lib, I have a function that accept a FILE*. As in crystal, files are not opened via fopen, how can I get a FILE* ?
23:06
soveran has joined #crystal-lang
23:08
<
BlaXpirit >
bew78, oh, well actually i don't think you can get a FILE* , it's a C implementation detail
23:08
<
BlaXpirit >
you probably need to do whatever C does - wrap `fopen` or whatever
23:11
soveran has quit [Ping timeout: 265 seconds]
23:25
jamie_ca has quit [Remote host closed the connection]
23:26
jamie_ca has joined #crystal-lang
23:29
pawnbox has joined #crystal-lang
23:34
pawnbox has quit [Ping timeout: 265 seconds]
23:57
<
bew78 >
I'll do that, thanks
23:57
<
bew78 >
BlaXpirit: I'll do that, thanks