deavmi has quit [Read error: Connection reset by peer]
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 268 seconds]
f1reflyylmao is now known as f1refly
deavmi has joined #crystal-lang
<FromGitter>
<elebow> Are there any naming conventions for shards without distinctive names? On crystalshards.xyz, I see `foo.cr`, `foo-cr`, `foo-crystal`. β β `foo.cr` seems to be most popular, but I think it could invite confusion when discussing a shard vs an individual file. I think I will go with `foo-cr` for brevity without losing clarity, unless there is a good reason to use one of the others.
<FromGitter>
<elebow> I should clarify, I mean project names. Not the name in shard.yml, of course.
DTZUZU_ has joined #crystal-lang
DTZUZU has quit [Ping timeout: 240 seconds]
<FromGitter>
<naqvis> AFAIK there is no standard project naming convention, but Crystal does have coding conventions (https://crystal-lang.org/reference/conventions/coding_style.html). General practice is shards ending with `.cr` represents library integration (C bindings etc), other than that, it all depends on the developer to name a shard
_ht has joined #crystal-lang
sorcus has joined #crystal-lang
deavmi_ has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
mipmip has quit [Ping timeout: 240 seconds]
hendursa1 has joined #crystal-lang
hendursaga has quit [Ping timeout: 240 seconds]
mipmip has joined #crystal-lang
<FromGitter>
<m_33:matrix.org> Hi guys, I am giving crystal a try, what IDE do you recommend ? atom ? or something more specific to crystallang maybe ?
<mps>
I use vim
<mps>
and not only for crystal but also other languages
<FromGitter>
<m33:nitro.chat> nano addict here ;) But I tend to use more and more GUI based editors, for git integration and avoiding constant switching with documentation in the browser and the terminal (eye fatigue)
<mps>
maybe gvim could help
<mps>
I don't use gvim so don't know for sure
<mps>
m33:nitro.chat: ofc, use what is good for you (just told my prefs)
<FromGitter>
<m33:nitro.chat> gvim may worth a try thanks
<FromGitter>
<Dan-Do> I use vscode, works ok
<FromGitter>
<m33:nitro.chat> Dan-Do (ddd): oh, that would be a great opportunity to test both vscode and crystal at once. I've given up on gvim since it is light but don't feel cozy like atom or in a lesser way geary
<FromGitter>
<m33:nitro.chat> Thanks guys, see you later ;)
<FromGitter>
<speg> Aaah!! Trying to set up a HTTP::Client with a UNIXSocket, if I store them as instance variables in a class, the second request fails with "Invalid HTTP Response"... then occasionally works every third try or so. β β If I write a plain program with local variables, and write multiple calls to client.get ... it works fine? π€― What's going on here?
<FromGitter>
<Blacksmoke16> prob not real safe to reuse a client instance
<FromGitter>
<Blacksmoke16> @oprypin:matrix.org I feel like i should start to remove `ART.run` from my examples :P
<FromGitter>
<oprypin:matrix.org> @Blacksmoke16: i dont get it
<FromGitter>
<Blacksmoke16> wouldnt that block and timeout the validator thing?
<oprypin>
depends what you want from it. in this config it doesnt execute any code anyway
<FromGitter>
<Blacksmoke16> ahh ok, i confused this with some like spec thing for code examples
_ht has quit [Remote host closed the connection]
<FromGitter>
<alex-kampa> I remember having read that there was no standard serialisation in Crystal, similar to Marshal, is this still the case?
<FromGitter>
<Blacksmoke16> things havent changed since you last asked no :p
<FromGitter>
<Blacksmoke16> stdlib has JSON/YAML serialization, there are shards that expand upon this and one that offers a byte format
<FromGitter>
<alex-kampa> Thanks @Blacksmoke16, is there a shard you can recommend? I want to serialise an object so it can be read back as quickly as possible.
<FromGitter>
<Blacksmoke16> in what format?
<FromGitter>
<alex-kampa> I want to save an object so that it can be read in as fast as possible. So byte stream / binary format obviously better than JSON.
<FromGitter>
<zomatree0:matrix.org> how would i map over `JSON::Any` presuming it will always be a json object
<FromGitter>
<Blacksmoke16> or tbh, just try using JSON or something simpler and see if you really need the extra perf
<FromGitter>
<Blacksmoke16> @zomatree0:matrix.org map over, i.e. the data is an array?
<straight-shoota>
@zomatree0 as_h.each
<FromGitter>
<zomatree0:matrix.org> thanks
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
<FromGitter>
<alex-kampa> Agree @Blacksmoke16 that the perf difference might not be that noticeable ... may try with just JSON. Thanks for your advice.
<FromGitter>
<Blacksmoke16> π
mipmip has quit [Read error: Connection reset by peer]