<FromGitter>
<watzon> Well I've tagged it, but it's weird that it's not showing up. I've had other shards that aren't tagged show up since I'm pretty sure crystalshards just checks for Crystal to be the main language
<FromGitter>
<watzon> It would be really nice to have an actual repository. Hopefully someday.
<FromGitter>
<mwlang> @kingsleyh, can SushiChain be used to build decentralized blockchain registry of Crystal shards? :-D
return0e has quit [Ping timeout: 246 seconds]
<FromGitter>
<nsuchy> @asterite It's bulk inserting data from a JSON file (the sample I have is 300MB) into an SQLite Database using Crystal-db transactions.
<FromGitter>
<nsuchy> @watzon
<FromGitter>
<mwlang> i'm trying to set up a spec for a JSON converter, but not sure how to instantiate a Pullparser directly starting with a json string.
<FromGitter>
<mwlang> The mistake I'm making, I'm sure, is I'm trying to instantiate the puller directly here, but I don't think it's initialization is looking for a String input.
<FromGitter>
<mwlang> I think I just solved it...below the json, I define ```puller = JSON::PullParser.new(json)``` and then pass ```puller``` in the ```#from_json``` call in the spec.
<FromGitter>
<Blacksmoke16> 👍
<FromGitter>
<Blacksmoke16> Why not just test the whole flow
<FromGitter>
<mwlang> well, trying to find where things are breaking down.
<FromGitter>
<Blacksmoke16> Ah
<FromGitter>
<mwlang> I can't debug this puppy like I would Ruby code....sooo...small unit tests gets me there.
<FromGitter>
<Blacksmoke16> Fair enough :p
<FromGitter>
<watzon> Hopefully better debugging support is in our future
<FromGitter>
<watzon> There is a pry port for crystal, not sure how well it works though
<FromGitter>
<watzon> Implicit requires don't hurt performance do they?
<FromGitter>
<mwlang> pry port for crystal? I wonder too how that might work...my biggest hurdle debugging right now is just getting the darn thing to compile.
<FromGitter>
<mwlang> once it's compiling and running, it's usually working unless I totally FUBAR something.
<FromGitter>
<mwlang> @Blacksmoke16 Thanks for that playbook way back when on parsing binance depth charts. I finally put it to good use, but had to learn a bit more about JSON parsing to bring it into the fold of things.
<mps>
bararchy: heh, when I was a child I lived some time there
<FromGitter>
<bararchy> that's cool mps
coderobe has quit [Ping timeout: 244 seconds]
coderobe has joined #crystal-lang
dostoyevsky has quit [Ping timeout: 244 seconds]
jokke has quit [Ping timeout: 258 seconds]
ua has quit [Ping timeout: 244 seconds]
dostoyevsky has joined #crystal-lang
jokke has joined #crystal-lang
ua has joined #crystal-lang
<mps>
and I know language very well. It is a really nice country. My daughter traveled there previous year and she were overjoyed
<FromGitter>
<bararchy> We just opened a new office there, I wanted to see if we have fellow Crystal devs in the area XD
<mps>
bararchy: in which city
<FromGitter>
<bararchy> Mostar
<mps>
it is not near to me, but also not too far
<FromGitter>
<davidcolombogit> @mavu found the issue, was something file system related too ⏎ The compiler struggled because the storage path of the file was too long ⏎ I think I just have to move the project into another folder with a shorter path xD
<FromGitter>
<bararchy> You're in sarajevo? mps
<mps>
no, I'm in Serbia
<FromGitter>
<bararchy> Oh!
<mps>
I was in military service in Mostar, long time ago
<FromGitter>
<bararchy> hahahahah I see
<mps>
hehe, that was before war
<FromGitter>
<bararchy> oh ok :)
<livcd>
bararchy: you moved there or it's just a new office?
<FromGitter>
<bararchy> new office
<livcd>
did you score some gov contract ? :D
<FromGitter>
<bararchy> in Bosnia?
<livcd>
yeah
<FromGitter>
<bararchy> we didn't try TBH hahah it's an office not a sales point
<FromGitter>
<bararchy> why? it's a thing over there? to sale to gov?
<livcd>
just a thought
<livcd>
seems like an odd choice for a new office
<FromGitter>
<bararchy> it is, it's unique :) lot's of smart ppl looking for things to do, not much opurtinity etc.. so easy to find employees
<mps>
and good coffee, I must add ;)
<mps>
summers are hot there
<FromGitter>
<bararchy> we currently have 35(c)
<FromGitter>
<bararchy> what is hot? XD
<mps>
heh, for us in continental Europe that is too much
<mps>
although last few years it seems we need to start accommodating to these temp's
<FromGitter>
<yxhuvud> Most summers we hit 30 once or twice, perhaps.
<FromGitter>
<j8r> Any ideas why YAML and JSON doesn't share the same annotations for `Serializable`?
<FromGitter>
<pynixwang> can I define a generic function?
<FromGitter>
<Blacksmoke16> `instance variable '@handlers' of Crylog::Logger must be Array(Crylog::Handlers::LogHandler), not Array(Crylog::Handlers::IOHandler)`
<FromGitter>
<j8r> I guess that the same as doing `a : Array(String) = ["a"]`
<FromGitter>
<Blacksmoke16> it works fine w/o the of T when there are two diff types of handlers, but when its just one it doesnt resolve that its still of a parent type
<FromGitter>
<j8r> that's quite strange?
<FromGitter>
<Blacksmoke16> :shrug: dont need to tell me that :p
<FromGitter>
<j8r> but why are you telling its `LogHandler`?
<FromGitter>
<Blacksmoke16> not end of the world, just cleans it up a bit
<FromGitter>
<j8r> If you use composition instead?
<FromGitter>
<j8r> maybe a bug of inheritance of structs
<FromGitter>
<Blacksmoke16> same thing happens with classes
<FromGitter>
<Blacksmoke16> prob is/was an issue for it somewhere
<FromGitter>
<Blacksmoke16> planning on doing a blog post on this + the DI stuff i been working on. they work well together as you could use DI to set the user on a like `UserStore`, then inject the same `UserStore` object into a processor so all loggers using that processor just magically get user info attached to them
ShalokShalom has quit [Remote host closed the connection]
<FromGitter>
<watzon> Intresting, it looks like the regex `[:print:]` is different in Ruby and Crystal. In Ruby it seems to cover unicode, but in Crystal it doesn't and you have to use `\P{Cc}` instead
<FromGitter>
<tenebrousedge> does that sound like it might be worth a bug report?
wymillerlinux has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter>
<asterite> Crystal uses pcre, Ruby uses oniguruma. Different regex engines, different capabilities
<FromGitter>
<drum445> Hello, how do I get a websocket server listening on the same port as my normal http server?
<FromGitter>
<watzon> @asterite that makes sense. I didn't realize that Ruby wasn't using PCRE
<FromGitter>
<watzon> Anyway, apparently GitHub just acquired dependabot. It would be awesome if someone opened a PR to add shards support, could be grwat exposure for Crystal.
wymillerlinux_ has joined #crystal-lang
wymillerlinux has quit [Ping timeout: 268 seconds]