RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <straight-shoota> @Rx14 I've added the issue with user32.lib to the wiki
<RX14> ok
<FromGitter> <straight-shoota> until we find a proper solution
<FromGitter> <straight-shoota> to build gc without it
<crystal-gh> [crystal] lukeasrodgers opened pull request #5525: Define `new(JSON::PullParser)` on BigDecimal so it can be deserialized (master...json-parse-bigdecimal) https://git.io/vNe7X
<crystal-gh> [crystal] RX14 opened pull request #5526: Remove unused sprintf function in the compiler (master...refactor/compiler-sprintf-cleanup) https://git.io/vNe5q
<crystal-gh> [crystal] RX14 closed pull request #5521: Improve cross compilation (master...feature/improve-cross-compilation) https://git.io/vNePz
<crystal-gh> [crystal] RX14 closed pull request #5103: Add VaList API (master...feature/va_list) https://git.io/vdr9J
cremes has quit [Quit: cremes]
<travis-ci> crystal-lang/crystal#71ae346 (master - Don't change temp output dir when cross compiling): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/324848183
rohitpaulk has joined #crystal-lang
badeball has quit [Ping timeout: 268 seconds]
badeball has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
rohitpaulk has quit [Ping timeout: 268 seconds]
<FromGitter> <bew> RX14 I just made a little research, and there seems to be another algorithm called Errol, which is 100% correct and 5x faster than dragon4 as explained in https://popl16.sigplan.org/event/popl-2016-papers-printing-floating-point-numbers-a-faster-always-correct-method
<RX14> But
<RX14> Is it simple?
<FromGitter> <bew> don't know, I'm looking at the overview video on that page for now
<FromGitter> <bew> the paper link if you want to check it out: https://cseweb.ucsd.edu/~lerner/papers/fp-printing-popl16.pdf
cremes has joined #crystal-lang
Three-test has joined #crystal-lang
faustinoaq has joined #crystal-lang
Three-test has quit [Ping timeout: 260 seconds]
<FromGitter> <bew> sry looks like the updated link is: https://cseweb.ucsd.edu/~mandrysc/pub/dtoa.pdf
<FromGitter> <bew> this is the repo of (an official?) implementation by the guy why wrote this paper: https://github.com/marcandrysco/Errol
<FromGitter> <bew> RX14 could you cancel this build https://circleci.com/gh/crystal-lang/crystal/2342 ? I added a new commit, I don't need this build
<FromGitter> <bew> nvm I'm going to sleep now, +/- 20min won't change anything
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
faustinoaq has quit [Ping timeout: 260 seconds]
faustinoaq has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower4 has quit [Ping timeout: 240 seconds]
<hightower3> Hey, I want to have something like: enum Levels; One; Two; Three; end. And then later I need some macro work like {% for level in %w{one two three} %}. What's my best approach to unify this so that I only specify levels in one place and use them for both purposes without don't repeating them?
<hightower3> Got it handled
illyohs has joined #crystal-lang
<FromGitter> <jwaldrip> What did `macro def` do?
<FromGitter> <jwaldrip> nevermind found the old docs.
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
hightower3 has quit [Remote host closed the connection]
rohitpaulk has joined #crystal-lang
ashirase has quit [Ping timeout: 265 seconds]
ashirase has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
ashirase has quit [Ping timeout: 256 seconds]
ashirase has joined #crystal-lang
aroaminggeek has joined #crystal-lang
<crystal-gh> [crystal] opiation opened pull request #5527: Added support for secure web sockets when protocol is HTTPS (master...playground-wss-front-end-support) https://git.io/vNvqx
<FromGitter> <jwaldrip> Can someone explain the .dwarf outputs I am seeing in 0.24.1
aroaminggeek has left #crystal-lang ["Textual IRC Client: www.textualapp.com"]
illyohs has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 250 seconds]
flaviodesousa has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
mark_66 has joined #crystal-lang
<crystal-gh> [crystal] jhass closed pull request #5526: Remove unused sprintf function in the compiler (master...refactor/compiler-sprintf-cleanup) https://git.io/vNe5q
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<FromGitter> <bew> Cool I dont know, but scary yes
rohitpaulk has joined #crystal-lang
jokke has quit [Quit: WeeChat 2.0.1]
<FromGitter> <bararchy> well, cool from infosec prespective :) anyway, it's really annoying that we are going to lose 5%-30% CPU power because of fix
jokke has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
<travis-ci> crystal-lang/crystal#6780faf (master - Remove unused sprintf function in the compiler): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/324939535
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
dragonkh has quit [Remote host closed the connection]
<livcd> i lost track on what happened
<livcd> glad i do not care about infosec
rohitpaulk has joined #crystal-lang
dragonkh has joined #crystal-lang
<FromGitter> <bararchy> livcd basiclly, bug in Intel\ARM\AMD CPU's that allows local attacker (on same machine via VM or app) to get info he should not get.
<FromGitter> <bararchy> the fix will disable a feature that will cost around 5-30% CPU performance, mainly select operations and shared memory access
<FromGitter> <bararchy> this is why VMs are primery target for this performance hit
<livcd> ah yeah this I read but did not know it affects ARM and AMD as well
<FromGitter> <bararchy> yeha, it's a CPU global issue
<FromGitter> <bararchy> every CPU from 95 to 2018
<livcd> does it affect sparc and powerpc ?
<FromGitter> <imonmyown> @bararchy so if I run a local VM, I am also affected?
<FromGitter> <bararchy> yeha, if the attacker get control of the local VM (even as "guest") he can steal info from the host machine
<FromGitter> <mjago> ouch 😱
<FromGitter> <drosehn> There are two different issues. One seems to be Intel-only, the second one shows up on AMD and ARM chips. The fixes which are rolling out (and which will cause a performance hit of up to 30%) are for the Intel-only bug. There is no quick fix for the second problem.
<FromGitter> <drosehn> I should say that the second one shows up on AMD and ARM -- in addition to Intel.
<FromGitter> <asterite> jwaldrip: dwarf file (only on Mac) contains debug info so you can see nice stack traces on exceptions
<FromGitter> <mjago> @asterite on a mac have you any idea why I get about 20 of the following warnings when compiling on a mac whithout --no-debug ? ⏎ ⏎ ```ld: warning: unknown dwarf DW_FORM_strp (offset=0x00000080) is too big in E-xception.o``` [https://gitter.im/crystal-lang/crystal?at=5a4e059129ec6ac311b932a5]
<FromGitter> <mjago> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a4e066584fb74b940379bc3]
<crystal-gh> [crystal] sdogruyol opened pull request #5529: Use Intrinsics.popcount128 (master...master) https://git.io/vNvuF
<RX14> @sdogruyol while you're uncommenting things, there's some stuff in libm.cr you might be interested in
<FromGitter> <sdogruyol> lol, I just happened to see that TODO :)
<FromGitter> <sdogruyol> thanks for the heads up
jnyw has quit [Quit: WeeChat 2.0.1]
<RX14> Np
<FromGitter> <sdogruyol> has anyone contacted CircleCI yet, for more containers?
faustinoaq has quit [Read error: Connection reset by peer]
faustinoaq has joined #crystal-lang
<crystal-gh> [crystal] sdogruyol opened pull request #5530: Remove LLVM update comments (master...remove-llvm-comments) https://git.io/vNv2t
<FromGitter> <asterite> Martyn Jago: no idea
faustinoaq has quit [Quit: IRC client terminated!]
<RX14> @sdogruyol not that I'm aware of
<FromGitter> <sdogruyol> I'm just doing that
<RX14> Might want to bring it up in the manas chat
<RX14> Oh ok
<FromGitter> <sdogruyol> I'll do so after
faustinoaq has joined #crystal-lang
faustinoaq has quit [Remote host closed the connection]
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 248 seconds]
faustinoaq has joined #crystal-lang
alex`` has quit [Quit: WeeChat 1.9]
<Vexatos> Now, here's a question: I've seen PR #5058 where @asterite states that LLVM 5.0 should not be the default LLVM version used, but I would still like to add it to the makefile so that llvm-config-5.0 is automatically detected on debian-based systems. Which priority should it have? For instance, should it be right below llvm-config-4.0, or at the very bottom?
<DeBot> https://github.com/crystal-lang/crystal/pull/5058 (Add `LibLLVM::IS_50` constant)
<Vexatos> Or did the stance that 5.0 should not be default change since then
<RX14> LLVM 5 is fine as the default
rohitpaulk has quit [Ping timeout: 252 seconds]
<RX14> Its been battle tested on arch Linux and its the default for home brew now too
<Vexatos> so I should just put it at the top then?
<Vexatos> i.e. make a clone of #5013 for it
<DeBot> https://github.com/crystal-lang/crystal/pull/5013 (Support LLVM 4.0 postfixed versions)
<RX14> things I think are most important to the windows port right now: UTF-16 (wchar) support written in crystal, unwind support
<RX14> the latter has IIRC been completed by txe in his branch
<RX14> for now I can just modify expect_raises on windows to just not run the block but unwind is important for specs and debugging
<Vexatos> RX14, travis etc. are still using LLVM 3.5?
<RX14> shouldn't be
<Vexatos> Dockerfile mentions it
<RX14> we definitely removed llvm 3.5 support...
<RX14> Dockerfile is dead Vexatos
<RX14> nobody uses it
<Vexatos> Ah I see
<Vexatos> Then it should go, no?
<RX14> perhaps
<RX14> but don't bother with it
<Vexatos> I wonder which version travis uses, then
<Vexatos> 3.8, I see
<RX14> yeah
<RX14> that needs a bump tbh
<RX14> technical debt everywhere
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vNvrt
<crystal-gh> crystal/master c663f52 Chris Hobbs: Add Process.exit stub on windows (#5524)...
<FromGitter> <asterite> We could remove support for older llvm versions that we know aren't used in anything we distribute (or arch, freebsd, etc.), specially because they are buggy
<RX14> IIRC 3.5 support is gone
<RX14> and we know 3.8, 3.9 have the --no-debug bug
<crystal-gh> [crystal] RX14 closed pull request #5529: Use Intrinsics.popcount128 (master...master) https://git.io/vNvuF
<Vexatos> Supporting only 4.0 and above then?
<Vexatos> For now, should I just PR a clone of #5013 for LLVM 5.0?
<DeBot> https://github.com/crystal-lang/crystal/pull/5013 (Support LLVM 4.0 postfixed versions)
<Vexatos> #5058 already tried that but that was three months ago, so whatever?
<DeBot> https://github.com/crystal-lang/crystal/pull/5058 (Add `LibLLVM::IS_50` constant)
<RX14> Vexatos, yes
<crystal-gh> [crystal] Vexatos opened pull request #5531: Support LLVM 5.0 postfixed versions (master...llvm-5.0-support) https://git.io/vNvKJ
<Vexatos> Here we go then
<crystal-gh> [crystal] asterite opened pull request #5532: Allow nested constants in type lookup for generic arguments that resolve to integers (master...bug/5426-constant-resolution) https://git.io/vNvK7
<travis-ci> crystal-lang/crystal#c663f52 (master - Add Process.exit stub on windows (#5524)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325002584
<DeBot> https://github.com/crystal-lang/crystal/pull/5524 (Add Process.exit stub on windows)
<travis-ci> crystal-lang/crystal#aaf7d96 (master - Use Intrinsics.popcount128 (#5529)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325006001
<DeBot> https://github.com/crystal-lang/crystal/pull/5529 (Use Intrinsics.popcount128)
rohitpaulk has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vNvPO
<crystal-gh> crystal/master ca555d2 Ary Borenszweig: Benchmark.ips: show allocated bytes per operation (#5522)
mark_66 has quit [Remote host closed the connection]
mark_66 has joined #crystal-lang
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vNvXS
<crystal-gh> crystal/master 0ea5ca0 Vexatos: Support LLVM 5.0 postfixed versions (#5531)...
<RX14> well, i'm very glad that CI *is* the bottleneck for merging PRs lately
<FromGitter> <bararchy> :)
<FromGitter> <bararchy> true
<Vexatos> circleci is so slow D:
<travis-ci> crystal-lang/crystal#ca555d2 (master - Benchmark.ips: show allocated bytes per operation (#5522)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325018941
<DeBot> https://github.com/crystal-lang/crystal/pull/5522 (Benchmark.ips: show allocated bytes per operation)
faustinoaq has joined #crystal-lang
<travis-ci> crystal-lang/crystal#0ea5ca0 (master - Support LLVM 5.0 postfixed versions (#5531)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325021333
<DeBot> https://github.com/crystal-lang/crystal/pull/5531 (Support LLVM 5.0 postfixed versions)
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
<crystal-gh> [crystal] RX14 closed pull request #5532: Allow nested constants in type lookup for generic arguments that resolve to integers (master...bug/5426-constant-resolution) https://git.io/vNvK7
<crystal-gh> [crystal] RX14 closed pull request #5527: Added support for secure web sockets when protocol is HTTPS (master...playground-wss-front-end-support) https://git.io/vNvqx
rohitpaulk has quit [Ping timeout: 248 seconds]
<crystal-gh> [crystal] RX14 opened pull request #5533: Implement snprintf on win32 (master...feature/windows-snprintf) https://git.io/vNvQE
<crystal-gh> [crystal] asterite opened pull request #5534: Compiler: devirtualize inherited types (master...bug/5495-inherit-self-twice) https://git.io/vNvQx
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<travis-ci> crystal-lang/crystal#d1355e7 (master - Allow nested constants in type lookup for generic arguments that resolve to integers (#5532)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325038150
<DeBot> https://github.com/crystal-lang/crystal/pull/5532 (Allow nested constants in type lookup for generic arguments that resolve to integers)
<FromGitter> <jwaldrip> what does the `.dwarf` file do?
dragonkh has quit [Remote host closed the connection]
A124 has quit [Ping timeout: 248 seconds]
<FromGitter> <straight-shoota> ☝️ 4. Januar 2018 11:40 (https://gitter.im/crystal-lang/crystal?at=5a4e04adba39a53f1ad55557)
<travis-ci> crystal-lang/crystal#09f9650 (master - Added support for secure web sockets when protocol is HTTPS (#5527)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325040867
<DeBot> https://github.com/crystal-lang/crystal/pull/5527 (Added support for secure web sockets when protocol is HTTPS)
hightower2 has joined #crystal-lang
<FromGitter> <jwaldrip> Nice, I was looking for that.
<FromGitter> <jwaldrip> Thank @straight-shoota
<FromGitter> <jwaldrip> Does that get auto loaded in when I run the binary?
jokke has quit [Ping timeout: 252 seconds]
<FromGitter> <asterite> yes, when the stack trace needs to be printed
<FromGitter> <asterite> it would be nice to know how to do it without an extra file, but Julien wrote that code so I don't know
jokke has joined #crystal-lang
<FromGitter> <jwaldrip> Gotcha... Dont know why those things just cant be compiled in... but works for now
<RX14> because macos doesn't use ELF
<RX14> which is dumb
<FromGitter> <jwaldrip> What was the replacement for Secure::Random.uuid?
<RX14> UUID.random
<FromGitter> <jwaldrip> not in docs...
<FromGitter> <jwaldrip> `in spec/cli_spec.cr:7: undefined constant UUID`
<FromGitter> <jwaldrip> Do I need to download a custom package?
<FromGitter> <straight-shoota> `require "uuid"`
<FromGitter> <jwaldrip> dope! thanks... but still where is it in the api docs?
<FromGitter> <straight-shoota> see #5478
<DeBot> https://github.com/crystal-lang/crystal/issues/5478 (Missing API documentation for UUID )
<FromGitter> <jwaldrip> got it thanks
<FromGitter> <asterite> RX14 but golang has nice stack traces and I don't see a dwarf file next to the executable, so how do they do it?
<RX14> magick
<crystal-gh> [crystal] MakeNowJust opened pull request #5535: Makefile: fix $PWD expansion (master...fix/makefile/wrap-pwd) https://git.io/vNvpq
<RX14> @asterite I don't know, we can figure it out later
<FromGitter> <jamessral> Has anyone here played with the SFML bindings?
A124 has joined #crystal-lang
mark_66 has quit [Quit: Leaving.]
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vNfJx
<crystal-gh> crystal/master 7cdf9e3 TSUYUSATO Kitsune: Fix formatting multi assignment with newline after equal (#5452)...
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vNfkp
<crystal-gh> crystal/master 2524362 asterite: Compiler: devirtualize inherited types
<travis-ci> crystal-lang/crystal#7cdf9e3 (master - Fix formatting multi assignment with newline after equal (#5452)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325097249
<DeBot> https://github.com/crystal-lang/crystal/pull/5452 (Fix formatting multi assignment with newline after equal)
aroaminggeek has joined #crystal-lang
<crystal-gh> [crystal] jhass closed pull request #5535: Makefile: fix $PWD expansion (master...fix/makefile/wrap-pwd) https://git.io/vNvpq
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vNfqH
<crystal-gh> crystal/master b293b01 Chris Hobbs: Implement snprintf on win32 (#5533)...
<travis-ci> crystal-lang/crystal#2524362 (master - Compiler: devirtualize inherited types): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325106583
rohitpaulk has quit [Ping timeout: 250 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
Groogy has joined #crystal-lang
<Groogy> Hi! :D
<FromGitter> <bew> Hello Groogy! ;)
bew has joined #crystal-lang
bew has quit [Client Quit]
<travis-ci> crystal-lang/crystal#4648c1d (master - Makefile: fix $PWD expansion): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325114863
<travis-ci> crystal-lang/crystal#b293b01 (master - Implement snprintf on win32 (#5533)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325115266
<DeBot> https://github.com/crystal-lang/crystal/pull/5533 (Implement snprintf on win32)
flaviodesousa has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<crystal-gh> [crystal] bew opened pull request #5537: Fix typo in benchmark spec (master...benchmark-spec-typo) https://git.io/vNfZ0
aroaminggeek has left #crystal-lang ["Textual IRC Client: www.textualapp.com"]
<oprypin> bew, i dunno, in times when CI is struggling, maybe changing 1 character at a time is not the best idea
<FromGitter> <bew> lol you're talking about typo PR is not a good idea right?
<crystal-gh> [crystal] RX14 opened pull request #5538: Workaround llvm.powi.* intrinsics not available on win32 (master...feature/windows-powi) https://git.io/vNfcd
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vNfCr
<crystal-gh> crystal/master 482b1cf TSUYUSATO Kitsune: Add ASTNode#single_expression and refactor with using it (#5513)...
<RX14> 63 spec files now run on windows
davic has quit [Quit: ZNC - http://znc.in]
<RX14> and once I compile more libraries, and when I port a bit more of Crystal::System that should be a lot more
<FromGitter> <imonmyown> 🙏
<RX14> Got about 35% of just the standard library specs running on windows
<Groogy> Wow
<Groogy> you guys been busy during christmas
<FromGitter> <bew> hmm yeah a little ^^
<FromGitter> <imonmyown> awesome work guys, keep it up 🌅
<FromGitter> <asterite> RX14: do they already run with the spec runner?
<RX14> yep
<RX14> here's a screenshot
<FromGitter> <sdogruyol> awesome
<FromGitter> <sdogruyol> 1) 2 seconds?? You got some power there haha
<RX14> huh?
<RX14> thats normal
<FromGitter> <asterite> so cool!
<RX14> the entire spec suite runs on linux at 11.33 seconds
<RX14> used to be only 4 seconds
<FromGitter> <asterite> I hope waj can jump in to support fibers, he wrote all of that code, plus the asm code for context switch
<RX14> takes much longer than that to compile
<FromGitter> <asterite> and what do we need to be able to compile the compiler?
<RX14> @asterite not sure
<RX14> more of File and Dir
<RX14> you'll need to stub out most of the tools because they require sockets
<RX14> well
<RX14> i mean you'll need to stub out the playground
<RX14> and then idk
<RX14> bits and small pieces here and there
<RX14> Threads and fibers are required for parallel codegen
<travis-ci> crystal-lang/crystal#482b1cf (master - Add ASTNode#single_expression and refactor with using it (#5513)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325143283
<DeBot> https://github.com/crystal-lang/crystal/pull/5513 (Add ASTNode#single_expression and refactor with using it)
<RX14> but that can be stubbed out too
<RX14> overall not sure
<RX14> would need to compile LLVM for sure
<FromGitter> <asterite> hm, the compiler uses fork too... we can not do that in windows, but compilation will be so slow then
<RX14> which i'm not looking forward to
<RX14> @asterite well slow is far better than none
<RX14> the stdlib just needs to be plugged away at
<RX14> I need to cross-compile more libraries
<RX14> and I need to complete more of Crystal::System for win32
davic has joined #crystal-lang
<Groogy> wait you guys managed to have incremental compilation?
<Groogy> or am I reading that wrong?
<Groogy> since you talk about fork n stuff
<RX14> no
<RX14> well
<RX14> Groogy, we've always done incremental LLVM compilation
<RX14> since forever
<RX14> but the majority of compiler time is still spent in non-llvm parts of the crystal compiler
<FromGitter> <bew> is there a simple way to replace the first char of a string by another char (ascii or unicode)? I know strings are immutable but I'm not sure how to build the new string efficiently with only 1 char replacement
<Groogy> ah
<RX14> @bew not sure if there's a sane way to do that
<FromGitter> <asterite> bew: string.sub(index, char)
<RX14> oh, cool
<FromGitter> <asterite> those `sub` and `gsub` names were copied from ruby... maybe we should do like Elixir and choose good names for everything, even if that means looking less like Ruby
<RX14> @asterite yeah i've thought that a bit
<RX14> I think keeping a few of the most common ones is good
<FromGitter> <bew> oh perfect, I missed the sub with index 👌
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<RX14> "Finished in -2116114 microseconds"
<RX14> there's some kind of bug here
<FromGitter> <asterite> or you optimized it A LOT
<jhass> well or it's really really really slow
<RX14> lol
<RX14> it's intermittent
<RX14> it's usually about
<RX14> 2.2 seconds
<RX14> i.e. 2200000 us
<RX14> so somehow it's get it's negative sign flipped
bazaar_ has quit [Quit: Reconnecting]
<RX14> no idea how thats possible
bazaar has joined #crystal-lang
<FromGitter> <Fryguy> a signed 32bit integer has a max of 2_147_483_648, which happens to be 2.14 s in nanoseconds
<FromGitter> <Fryguy> wonder if something is using nanoseconds, going over that a little, and setting the top bit, which is being interpreted as signed
<FromGitter> <Fryguy> although I would expect a small negative number
greengriminal has joined #crystal-lang
<FromGitter> <elorest> I like sub and gsub. They make about as much sense as the methods in other languages and they're short.
<RX14> nice
<RX14> so I can ssh into WSL
<RX14> and from there I can run all I need to to cross-compile windows
<RX14> it's nice not having to deal with windows proper
claudiuinberlin has joined #crystal-lang
<RX14> actually I can make cross-compile and run all one command...
<RX14> If you can get SSH to a windows WSL environment working, here's the code: https://gist.github.com/RX14/0183c0f91f6342ddfa7f18d1a80bbbd9
<FromGitter> <asterite> nice
<RX14> actually that gist is slightly wrong
<RX14> @asterite yeah it's just crystal-windows path/to/foo.cr and it takes <5s to compile and execute
<RX14> really helps speed stuff up
ua has quit [Quit: Leaving]
hightower2 has quit [Changing host]
hightower2 has joined #crystal-lang
ua has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vNfXn
<crystal-gh> crystal/master f8b35d1 Chris Hobbs: Workaround llvm.powi.* intrinsics not available on win32 (#5538)
<crystal-gh> [crystal] RX14 closed pull request #5537: Fix typo in benchmark spec (master...benchmark-spec-typo) https://git.io/vNfZ0
rohitpaulk has quit [Ping timeout: 252 seconds]
<travis-ci> crystal-lang/crystal#075a003 (master - Fix typo in benchmark spec (#5537)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/325204997
<DeBot> https://github.com/crystal-lang/crystal/pull/5537 (Fix typo in benchmark spec)
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
DTZUZU has quit [Quit: WeeChat 1.9]
rohitpaulk has joined #crystal-lang
DTZUZU has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
<FromGitter> <yxhuvud> Sub and gsub *are* good names *if* you have a certain background. Now, is it possible to make good readable and terse names that is more inclusive? Beats me.
jnyw has joined #crystal-lang
<oprypin> first of all, sub is not useful
<oprypin> `replace(limit: 1)`
greengriminal has quit [Quit: Leaving]
<FromGitter> <elorest> <oprypin> (sub)stitute makes a lot of sense in english. `sub` is used in almost all professions to mean to fill for or replace something else.
<FromGitter> <elorest> The guy fixing my heater just said yesterday that he subs in coleman parts when he can't order bryant in time. My sons teachers have been out of town this week so he has had subs.
<robacarp> man it's good to have line numbers in traces again
<FromGitter> <elorest> :)
<RX14> lol
<RX14> on windows there's not even traces