jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
qard_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
soveran has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
matp has quit [Quit: Textual IRC Client: www.textualapp.com]
matp has joined #crystal-lang
qard has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] asterite opened pull request #3311: Compiler: respect C ABI for procs and top-level methods that involve extern structs (master...feature/fix_proc_extern_structs) https://git.io/virC7
olek_poz has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/virCj
<crystal-gh> crystal/master 1f3e8b0 Ary Borenszweig: Fixed a couple of typos
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
olek_poz has quit [Ping timeout: 244 seconds]
<travis-ci> crystal-lang/crystal#1f3e8b0 (master - Fixed a couple of typos): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/160052608
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
perks has quit [Quit: perks]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
soveran has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 265 seconds]
snsei has joined #crystal-lang
snsei has quit [Client Quit]
snsei has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
snsei has quit [Remote host closed the connection]
ome has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 265 seconds]
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
snsei has joined #crystal-lang
pawnbox has joined #crystal-lang
snsei has quit [Ping timeout: 244 seconds]
balduin has quit [Ping timeout: 244 seconds]
olek_poz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 265 seconds]
jeromegn has quit [Ping timeout: 250 seconds]
jeromegn has joined #crystal-lang
mark_66 has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <aolko> There's new _stone_ in town (coming p soon) ⏎ ![?](http://i.imgur.com/JYqc2Od.png)
<FromGitter> <sdogruyol> What?
snsei has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
snsei has quit [Ping timeout: 240 seconds]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Crizkov has joined #crystal-lang
snsei has joined #crystal-lang
<Crizkov> Papierkorb: I love to use neovim and VSCode
<Crizkov> I also use Kate with KDE and C++ but not many extensions
snsei has quit [Ping timeout: 265 seconds]
<Crizkov> VSCode has a great GUI for debugger and a growing extension market
<FromGitter> <aolko> it lacks colorpicker
<Crizkov> alko: Oh, I didn't see that, however VSCode looks like an IDE but Microsoft and VSCode community always say that is a editor like Atom
<FromGitter> <aolko> atom is RAM heavy
<Crizkov> But at less VSCode shows CSS colors by default XD
<FromGitter> <crisward> @sdogruyol is there a reason why Kemal doesn't use - https://crystal-lang.org/api/0.19.1/HTTP/DeflateHandler.html
<Crizkov> aolko: VScode is RAM heavy too, I use vim-crystal with NeoVim for terminal in Low RAM environments
Crizkov has quit [Quit: Page closed]
<FromGitter> <aolko> nr
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
balduin has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <mverzilli> I use Spacemacs with this: https://github.com/juanedi/crystal-spacemacs-layer, but if you're on Windows ¯\_(ツ)_/¯
<FromGitter> <aolko> oh no, take cover, anothe vim vs. emacs holywar
<FromGitter> <mverzilli> haha, I don't think so, I'm a spacemacs newbie so no fanaticism here yet
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
snsei has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
<asterite> I use sublime text in vim mode, to end the war: no, I don't use vim, but I like it :-P
<asterite> BlaXpirit: here?
<BlaXpirit> hi
<asterite> o/
<asterite> it'll be faster if we talk here, I think
bjz has quit [Read error: Connection reset by peer]
<BlaXpirit> sure
<asterite> can I somehow reproduce your error locally?
<asterite> is your project public?
<asterite> I have an idea of where the problem might be, but I want to reduce it and add a test case
<BlaXpirit> it's in uncommitted uncleaned changes of an otherwise public project :s
bjz has joined #crystal-lang
<asterite> One thing you can do to spot where the problem might be (so we can reason about it and I can try to fix it)...
<asterite> is, in codegen.cr there's a line ` def visit(node : ProcLiteral) `
<asterite> add `pp node, node.location` after that
<asterite> and recompile the compiler, and then compile your file. Before the crash stacktrace it will be printed which proc is the problematic one, and from there we'll move on
<asterite> (I'll be back in 20 minutes, but I'll see messages here)
<BlaXpirit> asterite, https://github.com/BlaXpirit/crystal-chipmunk/blob/97a0060/spec/space_spec.cr#L263 uncommenting this line makes the change
<BlaXpirit> (from not crashing to crashing)
<BlaXpirit> but it's so complicated :( well at least one thing that may help, I'm pretty sure it's only the very last commit you did that broke this
<BlaXpirit> (previously I think it just gave incorrect results)
mgarciaisaia has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 260 seconds]
<BlaXpirit> I did what you said but it only confirmed my guess
<asterite> what's the proc?
<asterite> Great! I'll debug it later. I also found a different case where it breaks on my side
<BlaXpirit> ok thanks
mgarciaisaia has left #crystal-lang [#crystal-lang]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
<BlaXpirit> asterite, another thing worth mentioning, _cp_gather just makes another method that returns an array instead of yielding, based on the existing one. also, after you've defeated the crash, may be worth trying the specs in space_spec.cr (replace `pending` with `test`). I have confirmed that these pending tests give incorrect results on your previous commit b05936a, while on your latest commit 56bc69d it crashes (not too late to diff between them)
pawnbox has joined #crystal-lang
<FromGitter> <jwaldrip> Does crystal have a way to install global packages in your path. i.e. command line tools or generators. If not, I would love to add something like that to the crystal cli.
<FromGitter> <crisward> like `npm install -g`?
onethirtyfive has joined #crystal-lang
<BlaXpirit> jwaldrip, no, nothing like that at all
<BlaXpirit> let alone installing, even using libs can be done only from current folder
<BlaXpirit> not that there's a real need for this
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
Philpax has quit [Ping timeout: 260 seconds]
snsei has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
<FromGitter> <sdogruyol> @crisward what's the use case for that?
<FromGitter> <sdogruyol> if you want you can add it to your handlers as a middleware
<FromGitter> <jwaldrip> Correct
<FromGitter> <jwaldrip> @crisward correct
perks has joined #crystal-lang
perks has quit [Client Quit]
<FromGitter> <crisward> @sdogruyol I've added it as middleware, which is fine. I just try and gzip everything I can for quicker downloads. Crystal seems to do this fairly effortlessly, so it could be nice to have as a config option. Obviously skipping binaries is a necessary, but css, js and html really benefit from gzip.
<FromGitter> <sdogruyol> Yeah I noticed that
<FromGitter> <sdogruyol> Maybe I should enable it by default
mark_66 has quit [Remote host closed the connection]
<FromGitter> <crisward> it would be good for it to be optional, as you may want to run kemal behind a proxy.
emancu has joined #crystal-lang
qard has joined #crystal-lang
<FromGitter> <sdogruyol> @crisward yeah
<FromGitter> <sdogruyol> something like `enable_gzip` would be cool
<FromGitter> <sdogruyol> @crisward gzip true , it's false by default
<asterite> should be true by default
bew78 has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
<FromGitter> <sdogruyol> @asterite i wonder how it plays with nginx
<FromGitter> <sdogruyol> Rack::Deflater is not enable by defaut in Sinatra, Rails e.g
soveran has quit [Remote host closed the connection]
<FromGitter> <crisward> @sdogruyol Not sure what nginx does if it proxies gzip, I imagine if it sees the headers it just passes it through. Even so, I think off by default seems more logical. Just trying to work out how to gzip static files too
bew78 has quit [Ping timeout: 244 seconds]
<FromGitter> <sdogruyol> @crisward isnt adding HTTP::DeflateHandler to handlers solves that?
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<RX14> i don't think gzip should be true by default
<FromGitter> <crisward> `Kemal.config.add_handler gzip_middle` only adds it normal routes, not static
<FromGitter> <crisward> `gzip_middle` is my middleware which is just an empty class extending deflate
<RX14> also, crystal shouldn't generate another tool for installing commandline tools, that should be left to the system package manager
<RX14> there probably should be an option for shards installing binaries to a project-local bin folder
<RX14> which stuff like crenv could possibly add to the path
<RX14> if you're in that folder of course
<RX14> but nothing global, there's too many package managers out there
<RX14> maybe even design it as shards tool <x>
<RX14> instead of a bin folder
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
<FromGitter> <jwoertink> Is there a way to include a Makefile as a part of a shard?
<FromGitter> <jwoertink> or, I guess the better question is, if a shard has a Makefile, when you run `shards install` how come that Makefile doesn't show up in the libs folder?
<RX14> @jwoterlink, shards only has the src folder
<RX14> shard/src -> libs/shard_name
<RX14> rest is discarded
<FromGitter> <jwoertink> Is there a way to override that?
<FromGitter> <jwoertink> There's actually some docs https://github.com/crystal-lang/shards/blob/master/SPEC.md#postinstall that mention doing a postinstall running Make
<RX14> there's no way to override
<RX14> thats just how shards work
<RX14> you can run postinstall scripts
<RX14> but you have to put them in src
<FromGitter> <jwoertink> if someone adds my shard as a dependency to their project, I'd like that postinstall to run Make
<RX14> yes
<RX14> this will change soon though
<FromGitter> <jwoertink> oh, so the Makefile would have to be in the `src` directory
<RX14> i think so
<FromGitter> <jwoertink> ok, cool.
<RX14> either that or it runs the makefile in a temp dir
<RX14> then copies the src out from that
<FromGitter> <jwoertink> Soon like, I should hold off on doing this? or it's in the pipeline, and there's no time on it
<FromGitter> <jwoertink> ?
<RX14> well...
<FromGitter> <jwoertink> haha loaded question, I know..
<FromGitter> <jwoertink> oh wow
Oliphaunte has quit [Remote host closed the connection]
<FromGitter> <jwoertink> ok, cool
<RX14> you should ask asterite for movement on 2788
pawnbox has quit [Ping timeout: 265 seconds]
<asterite> BlaXpirit: still here? :-)
pawnbox has joined #crystal-lang
<FromGitter> <piedoom> Hi all
<FromGitter> <sdogruyol> hey
<FromGitter> <piedoom> I was wondering if it was possible to use the `.from_json` method when the target JSON wasn't the root level object
<FromGitter> <raydf> @jwoertink look at https://github.com/jessedoyle/duktape.cr
<FromGitter> <raydf> this shard does what you want
<FromGitter> <raydf> when you includes this library it compiles duktape c library.
<RX14> asterite, what's blocking #2788?
<DeBot> https://github.com/crystal-lang/crystal/pull/2788 (Implement the new path search algorithm)
<FromGitter> <jwoertink> oh nice! Thanks @raydf
<FromGitter> <jwoertink> that's perfect
<asterite> RX14: I'm not familiar with shard's source code so I don't know how to change shards for that right now
<RX14> asterite, well you would have to do a major release when you change that in crystal
<asterite> yes, that too
<RX14> so its only really worty chainging it right before the release
<RX14> otherwise you have this shards commit that can't be in any release builds
olek_poz has quit [Quit: Konversation terminated!]
<FromGitter> <raydf> If anyone is using vscode, i created a dark theme specialized for crystal "theme-crystaldark".
<FromGitter> <piedoom> I am in fact, I'll check it out.
<FromGitter> <raydf> it has a lot of different colors for highlighting each part of crystal code. It has been tested with the crystal-ide extension.
soveran has quit [Remote host closed the connection]
<crystal-gh> crystal/master a967913 Ary Borenszweig: Merge pull request #3311 from crystal-lang/feature/fix_proc_extern_structs...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/viKZO
coderobe has quit [Ping timeout: 244 seconds]
Ven_ has joined #crystal-lang
coderobe has joined #crystal-lang
coderobe has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/viKCJ
<crystal-gh> crystal/master 570d0f9 Ary Borenszweig: Small refactor in spec
<crystal-gh> crystal/master f021f1f Ary Borenszweig: Spec: allow passing directories. Fixes #3312
coderobe has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Ping timeout: 255 seconds]
confused_crystal has joined #crystal-lang
<confused_crystal> hello all
Ven__ has joined #crystal-lang
Ven_ has quit [Read error: Connection reset by peer]
<confused_crystal> any users around?
<tilpner> You should ask your question, people are hesitant to offer blanket help.
<travis-ci> crystal-lang/crystal#f021f1f (master - Spec: allow passing directories. Fixes #3312): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/160271695
<confused_crystal> ok sorry, I'm stuck on creating an array that has the shape {Hash(string, string), Hash(String, String), Hash(String, String)}
<tilpner> Does Array(<your-hash-tuple>).new not work?
<confused_crystal> its weird, let me paste the source and error
<tilpner> Or [] of <your-hash-tuple>
<confused_crystal> one moment
<tilpner> Also, that's a terrifying type. I don't want to know what you're doing.
<confused_crystal> the compiler shouts out me:
<confused_crystal> no overload matches 'Array(Tuple(Hash(String, String), Hash(String, String), Hash(String, String)))#push' with type String
<tilpner> Show the line where you push.
<confused_crystal> can I put a gist up?
<tilpner> Yes, please.
<confused_crystal> one second
salvor has quit [Remote host closed the connection]
<confused_crystal> I'm a noob at crystal
<confused_crystal> arrg, I think I've just spotted my own problem!!
<tilpner> The tables.push(line) one?
<confused_crystal> yea, I should be using two arrays!
<tilpner> Quack.
<tilpner> (Or whatever sound rubberducks make)
<confused_crystal> one holds the stack of table names, the other is the actual object of things
<confused_crystal> yep rubber duck debugging :)
<confused_crystal> I thought I was going crazy!
<tilpner> Doesn't your regex kinda break for the indented items?
<confused_crystal> probably, I suppose I can use a tab achhor?
soveran has joined #crystal-lang
<confused_crystal> any tips or pointers would be greatly appreciated!
<tilpner> I wouldn't use a regex personally, but something like ^\s+(\w+)\s(\w+)\s(.+)$ seems better already.
<confused_crystal> yea that makes more sense
<jeromegn> anybody knows what happened to crystalshards.xyz?
<RX14> it died?
<confused_crystal> I just look up on awesome crystal
<RX14> heroku...
<BlaXpirit> confused_crystal, that's a nice echo chamber
<RX14> BlaXpirit, ?
<FromGitter> <sdogruyol> crystalshards.xyz is down for the moment
<FromGitter> <sdogruyol> payment issue
<FromGitter> <sdogruyol> fkadev is fixing it
<RX14> is crystalshards.xyz open source?
<FromGitter> <sdogruyol> yeah
<confused_crystal> @sdogruyol I was using will/crystal-pg, do you know if its possible to do names parameters? at the moment all the examples use $1, $2 etc?
<FromGitter> <sdogruyol> that's actually named parameters
<confused_crystal> sorry typo
<FromGitter> <sdogruyol> SELECT * FROM users WHERE id = $1 and you pass the named parameter like that
<confused_crystal> but I want to be able to do "select * from user where id = :id" like in other libraries
<FromGitter> <f> Hello. Sorry for the problem on CrystalShards.xyz
<FromGitter> <f> I didn't pay the bill to the Heroku, they suspended my account completely :/
<confused_crystal> in psycopg2 you can do something like "select * from bla where email = %(email)s", {"email", "dsdsdd"}
<FromGitter> <f> And I paid back now, now it's alive.
<FromGitter> <f> I need a donation thing for CrystalShards.xyz :smile:
<asterite> what's wrong with http://crystalshards.herokuapp.com/ ? :-)
<FromGitter> <f> it has bugs
<FromGitter> <f> compare the results :)
<asterite> Send a PR? :-)
<FromGitter> <f> yeah but at the beginning we started to make a better view for crystalshards.xyz
<BlaXpirit> f, you know what i don't like about crystalshards.xyz ? the top entries never change
<BlaXpirit> even if the lib is abandoned
<FromGitter> <f> @ BlaXpirit it gets the most starred repositories
<RX14> asterite, or just use crystalshards.xyz?
<FromGitter> <f> we can make the filter like "most starred and last updated time" thing
<RX14> it's got a better domain and better design
<BlaXpirit> and is less useful :(
<FromGitter> <f> less useful comparing to crystalshards.herokuapp?
soveran has quit [Remote host closed the connection]
<FromGitter> <f> .xyz is a fork of it, it already has all the features of .herokuapp one.
<BlaXpirit> nope
<BlaXpirit> has no descending sorted list by stars
<BlaXpirit> just always shows the exact same 8 entries on top
<BlaXpirit> oh geez i just found out about that
<FromGitter> <f> please click the "Popular" title :)
<BlaXpirit> looked at that site so many times
<FromGitter> <sdogruyol> lol
<FromGitter> <f> maybe we can highlight the link :D
<BlaXpirit> that's good then, but yes, please h.l. the link
<BlaXpirit> or maybe there's an even better way
<BlaXpirit> I would probably prefer a link that just says "see more"
<BlaXpirit> maybe at the bottom
<FromGitter> <f> yeah i was thinking about "see more" thing.
Ven__ has quit [Ping timeout: 265 seconds]
<FromGitter> <f> and I'll remove the shards if it's not updated for a month or something
<FromGitter> <f> e.g. amethyst is updated 313 days ago :S
<FromGitter> <f> about a year
<RX14> hmm
confused_crystal has quit [Ping timeout: 240 seconds]
<BlaXpirit> f, ideally there would be some shuffling, not just removing old entries
<FromGitter> <piedoom> rip :(
<BlaXpirit> most often seen approach is just trending - by how much % each repository grew recently, etc
<RX14> that reminds me I should update fast_irc.cr
<FromGitter> <piedoom> I've been wondering, how do you actually get a list of shards?
<BlaXpirit> piedoom, there's no centralised list... well except github is basically the only well-recognized place
<BlaXpirit> i think such tools just query github
<FromGitter> <piedoom> That's what I had thought hmm
<FromGitter> <f> language:crystal
<FromGitter> <f> github is the magic :D
<FromGitter> <piedoom> Decentralizing shards is pretty cool, but I wonder what would happen if a popular shard disappeared
<FromGitter> <f> it wont be shown then
<BlaXpirit> piedoom, someone would find a git repo on their computer and put it back up
<FromGitter> <f> if gh api doesnt provide me then it wont be shown
<FromGitter> <piedoom> I mean more in the sense of people's projects might get broken
<BlaXpirit> the fact that 'shards' downloads whole repos only helps
<BlaXpirit> piedoom, heh that's not the worst thing that can break projects
<FromGitter> <f> @piedoom oh that's what happened to NPM few months ago :D
<FromGitter> <piedoom> That's true :-)
<FromGitter> <piedoom> Yeah
<FromGitter> <piedoom> Leftpad
<BlaXpirit> i mean, the network is not as crazily intertwined as NPM mainly because crystal actually has a stdlib
<FromGitter> <piedoom> Yeah
Oliphaunte has joined #crystal-lang
<FromGitter> <piedoom> Oh javascript...
<RX14> well, a 1 month timeout for a shard to be considered "outdated" is a bit too short imo
<FromGitter> <piedoom> Perhaps top results could be weighted?
<BlaXpirit> i don't think time is a good measure anyway
<FromGitter> <f> @rx14 yeah you're right, actually we need a "trending" thing
<BlaXpirit> what if a lib keeps working fine
<RX14> well...
<RX14> trending is one thing
<FromGitter> <f> popular is not a good thing to show on main page
<BlaXpirit> it is a good thing, but is not what is currently shown
<RX14> maybe manual monthly picks
<FromGitter> <f> because they never change, never-changing information is useless
<FromGitter> <piedoom> Perhaps there could be community voting so manual picks by one person weren't necessary?
<BlaXpirit> so.... manual picks by 3 persons?
<BlaXpirit> lol
<FromGitter> <piedoom> Yeah, I guess haha
<RX14> so
<RX14> to avoid the problems of github's voting systems...
<RX14> you're creating a voting system
<RX14> ok then
<FromGitter> <f> :D
<BlaXpirit> there is no problem with the voting system, i'm just saying the absolute value is not the answer
<FromGitter> <piedoom> Hey, I'm just spitballing here.
Oliphaunte has quit [Ping timeout: 250 seconds]
<RX14> BlaXpirit, BTW is there a better power_assert macro?
<RX14> or was it just compiler mods + other assert macros
<FromGitter> <piedoom> I think a good simple solution is probably taking the amount of stars/last updated date into account and weighting results for trending
<BlaXpirit> RX14, i've put up a simple assert macro for just top level expressions that cooperates with standard library spec spec
<FromGitter> <piedoom> So a popular repo won't be removed just because it's old
<RX14> hmm
<BlaXpirit> piedoom, it's a very minor improvement
<RX14> what about
<RX14> manual outdated marking
<FromGitter> <piedoom> that could work as well
<RX14> people can report outdated, which is reviewed by humans
<BlaXpirit> i'm afraid that a proper solution will require (for example) daily snapshots of stars for each repo
<RX14> the proper solution is human
<BlaXpirit> and simply take growth as well as absolute value into account
<FromGitter> <piedoom> Might be necessary since it's impossible to tell between stuff that is old and needs updating and stuff that is old but still works.
<RX14> BlaXpirit, power_assert.cr is broken in 0.19.1
<BlaXpirit> old stuff that still works will usually also get growth
<BlaXpirit> RX14, well i think power_assert is beyond repair
<RX14> uhh
<BlaXpirit> has some long standing issues but the performance just kills it
<FromGitter> <f> any idea to get a "outdated" date from github api?
<FromGitter> <piedoom> Doesn't it already have the last updated date?
<RX14> uhh
<RX14> get the latest commit?
<BlaXpirit> sigh
<RX14> github has a commits API
<FromGitter> <f> no no
<BlaXpirit> crystalshards.xyz has such information
<FromGitter> <f> i mean community will mark repo as outdated
<BlaXpirit> outdated is not a concept that can be covered by an automatic api
<FromGitter> <f> and so i can know outdated
<BlaXpirit> of course github doesnt have such a specific feature
<FromGitter> <f> but this data should be in gh api
<RX14> ...
<RX14> why
<FromGitter> <piedoom> All the data you can get from the API is the last commit
<FromGitter> <f> i don't mean gh should have :D
<FromGitter> <f> i mean abusing gh api to have this feature-ish
<FromGitter> <piedoom> Maybe if we train a neural network on old github repositories.......
<FromGitter> <f> (thinking loudly)
<BlaXpirit> [00:20:11] <BlaXpirit> i'm afraid that a proper solution will require (for example) daily snapshots of stars for each repo
<BlaXpirit> RX14, but yeah, this is good enough for me https://github.com/BlaXpirit/crystal-chipmunk/tree/master/spec
<RX14> thats...
<RX14> a macro and a half
<BlaXpirit> the thing that bloats it the most is having to evaluate everything only once
<BlaXpirit> also 2 ugly parts can be fixed with the newly added macro node methods
<RX14> >require "spec"
<RX14> literally unusable
<BlaXpirit> well if you consider standard library literally unusable, that's a dire state of business
<BlaXpirit> (i do too though lol)
<RX14> i need all my fancies
<BlaXpirit> there's no alternative currently
<RX14> spec2
<BlaXpirit> did u see the issues on spec2? it's also very bloated and causes performance problems and crazy huge macro backtraces
<RX14> yeah oh well
willl has joined #crystal-lang
danzilio has quit [Ping timeout: 250 seconds]
_whitelogger has joined #crystal-lang
avdi has joined #crystal-lang
danzilio has joined #crystal-lang
CompanionCube has joined #crystal-lang
daekano has joined #crystal-lang
kiliankoe has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Oliphaunte has joined #crystal-lang
soveran has quit [Remote host closed the connection]
<FromGitter> <f> http://crystalshards.xyz now has trending part :)
<FromGitter> <piedoom> that was fast :)
<FromGitter> <piedoom> Do you think the site might ever support shards not hosted on Github?
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <f> hmmm
<FromGitter> <f> currently it works awesome with github api. i do not want to manage something :D
<FromGitter> <piedoom> Makes sense
<FromGitter> <piedoom> I think 99% of people use github anyways
Oliphaunte has quit [Remote host closed the connection]
<FromGitter> <f> trending = most starred 10 repos pushed commits in a week
<FromGitter> <f> we can improve this if gh api provides more
<FromGitter> <piedoom> does GH provide an enpoint equivalent to this - https://github.com/trending/crystal ?
<FromGitter> <piedoom> Or is that just "most starred"
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/viKSJ
<crystal-gh> crystal/master 611849c Ary Borenszweig: Compiler: added `--error-trace` to show a complete error trace....
<FromGitter> <f> most starred is already "all time popular"
<FromGitter> <f> this seems bad, i didn't update kamber for months but it says its trending
<FromGitter> <f> it doesnt even work :/
<FromGitter> <piedoom> Yeah, I think github's trending is actually just most starred
<FromGitter> <piedoom> not actually trending
<FromGitter> <piedoom> What's this?
<FromGitter> <f> this is the crystalshards.xyz usage from the world
<FromGitter> <f> i didn't know people use it :D
* tilpner does.
<FromGitter> <piedoom> I love it, it's got a great design.
<FromGitter> <f> @piedoom do you know that: http://crystalshards.xyz/name
<FromGitter> <piedoom> I didn't know that, that's a pretty cool feature :)
<FromGitter> <f> refresh the page, it offers you actual crystal names :D
<FromGitter> <f> you can learn crystal names :P
<FromGitter> <f> click the name it opens wiki :P
<FromGitter> <piedoom> Haha, I didn't notice that
<tilpner> "crystal init lib lazulite-quartz-quartz"
<tilpner> :/
<FromGitter> <f> yeah some shit happens sometimes. i fetched a website with crystal names
<FromGitter> <f> i need to refine it
bjz has joined #crystal-lang
balduin has quit [Ping timeout: 240 seconds]
bjz has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
A124 has quit [Ping timeout: 265 seconds]
<FromGitter> <piedoom> that's a very good github name you've got there, by the way
<FromGitter> <f> aha thanks :)
<FromGitter> <f> easy to use
<FromGitter> <piedoom> yeah hahaha
<RX14> oh its back now
<travis-ci> crystal-lang/crystal#611849c (master - Compiler: added `--error-trace` to show a complete error trace.): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/160311703
balduin has joined #crystal-lang
Liosha has joined #crystal-lang
pawnbox has joined #crystal-lang
<Liosha> Hi! Crystal community, Can I use pthread C binding in crystal?
<FromGitter> <f> @piedoom I tried GH's new feature of "Review" with your commit.
<FromGitter> <f> :)
pawnbox has quit [Ping timeout: 265 seconds]
<FromGitter> <piedoom> Cool! let's see if I can figure out how to use git properly :)
<FromGitter> <piedoom> Oh whoops. I guess dragging files into VSCode copies them and doens't actually open the original :P
<FromGitter> <mverzilli> the Elm packages site (http://package.elm-lang.org/) pushes down and grays out packages that don't compile with the latest version
<FromGitter> <mverzilli> doing that and sorting by stars seems to work really well
Oliphaunte has joined #crystal-lang
<FromGitter> <mverzilli> but of course, it's kind of difficult to pull of since we would need to think of some automated way of determining whether a shard compiles in the latest Crystal
<FromGitter> <mverzilli> *pull off
<FromGitter> <piedoom> That's pretty interesting
<FromGitter> <piedoom> Does Travis CI offer any tool like that? I know they do testing for Crystal but I'm not too familiar with the service.
Oliphaunte has quit [Ping timeout: 265 seconds]
<FromGitter> <piedoom> Does anyone know how I might go about creating an object with the JSON mapping feature, when the JSON I want to target isn't root-level? Here's a gist of the data I'm dealing with - ⏎ ⏎ https://gist.github.com/piedoom/41985198d98c67bdfa8bc5eea0f952b2
<FromGitter> <piedoom> I want to get everything within the "user" object, and ignore the rest. Only thing I thought of so far is to parse the JSON, and then send in a hash, but I'm sure there's a better way.
<Liosha> Thanks you @raydf! Nice VSCode theme "theme-crystaldark" +1, Also, could be good a "light theme" XD
onethirtyfive has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 244 seconds]