jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
chachasmooth has quit [Quit: Quit]
chachasmooth_ has joined #crystal-lang
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
zorp has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 244 seconds]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
teardown has joined #crystal-lang
teardown has quit [Read error: Connection reset by peer]
chachasmooth_ has quit [Ping timeout: 244 seconds]
chachasmooth has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 240 seconds]
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
teardown has joined #crystal-lang
<FromGitter> <grkek> That gave me anxiety
<FromGitter> <grkek> @j8r I will be using GTK3
alexherbo2 has joined #crystal-lang
zorp has joined #crystal-lang
<riffraff169> that userinyerface site was crazy...ive seen things like that (as have we all)
<riffraff169> there was a web site ages ago (90s maybe?) that was called the user interface hall of shame
<riffraff169> one example was visual source safe, if you tried to check in too many files, it would say it may not be successful and could delete your files, do you want to continue?
<riffraff169> uh, no
<repo> is there by any chance a shard for generating code for json mappings out of json schema?
<repo> this would be super cool
<FromGitter> <naqvis> repo https://app.quicktype.io/#l=Crystal
<repo> naqvis that's really cool, but i'd need it locally to programmatically generate code
<repo> hm ok there's a command line tool for it
DeBot has quit [Quit: Crystal IRC]
asterite has quit [Quit: Bye]
jhass has quit [Quit: Bye]
straight-shoota has quit [Quit: ZNC 1.7.5 - https://znc.in]
DeBot has joined #crystal-lang
asterite has joined #crystal-lang
straight-shoota has joined #crystal-lang
jhass has joined #crystal-lang
<repo> meh but something in pure crystal would be kinda cool
<FromGitter> <naqvis> yeah, pure crystal implementation should be cool and i'm sure crystal ecosystem will evolve with the language
alexherbo26 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 244 seconds]
alexherbo26 is now known as alexherbo2
jetpack_joe_ has joined #crystal-lang
jetpack_joe has quit [Ping timeout: 272 seconds]
maxpowa has quit [Ping timeout: 272 seconds]
jetpack_joe_ is now known as jetpack_joe
maxpowa has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 256 seconds]
andremedeiros has quit [Quit: ZNC 1.8.2 - https://znc.in]
andremedeiros has joined #crystal-lang
alexherbo2 has joined #crystal-lang
f1reflyylmao has quit [Quit: bye fags]
f1refly has joined #crystal-lang
renich has joined #crystal-lang
go|dfish has quit [Ping timeout: 260 seconds]
go|dfish has joined #crystal-lang
<FromGitter> <Blacksmoke16> ☝️ June 10, 2020 6:36 PM (https://gitter.im/crystal-lang/crystal?at=5ee16084ef5c1c28f016864a) I think im going to go with this approach :P
<FromGitter> <Blacksmoke16> is it expected that ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ Sometimes does like [https://gitter.im/crystal-lang/crystal?at=5f6116bff51808513b46808b]
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f6116d63651184d30f25a29]
<FromGitter> <Blacksmoke16> id have expected it to bubble up and be handled by the `rescue` in the `loop` block
<FromGitter> <Blacksmoke16> not really a problem, ill just do the error handling in the fiber itself, just something i noticed
<oprypin> Blacksmoke16, no of course another fiber cannot catch exceptions like that. it is expected
<oprypin> why do you say "sometimes"; i'd expect an error _always_ 🙃
<FromGitter> <Blacksmoke16> fair enough
<FromGitter> <Blacksmoke16> 🙈
DTZUZU_ has quit [Read error: Connection reset by peer]
DTZUZU has joined #crystal-lang
sorcus has quit [Ping timeout: 260 seconds]
sorcus has joined #crystal-lang
<FromGitter> <j8r> In your opinion, what the best way to handle logging for an Entity (in game dev)?
<FromGitter> <j8r> I have a lot of them
<FromGitter> <j8r> not that they share a GameContext
<FromGitter> <j8r> maybe https://crystal-lang.org/api/master/Log.html#for(child_source:String,level:Severity?=nil):Log-instance-method ?
<FromGitter> <j8r> one issue I can foresee is a lot of logging object will be around :/
<FromGitter> <j8r> I think i'm going to use the context's logger
<FromGitter> <Blacksmoke16> log with message of whatever the thing in, then the context set to stuff specific about that obj (like its id)
<FromGitter> <Blacksmoke16> might also be able to use https://crystal-lang.org/api/master/Log/AsyncDispatcher.html so the logs dont affect perf?
<FromGitter> <j8r> maybe... I'll try to keep the dispatcher thing in mind
<FromGitter> <j8r> for the first option, that's also more or less what I thought - going to do that
<FromGitter> <Blacksmoke16> well i think you would use both that and the async dispatcher
<FromGitter> <Blacksmoke16> so your log messaged is written in background versus in real time
<FromGitter> <j8r> ok! Still, have to wait a release to do so
<FromGitter> <j8r> I add a note on my code, not high priority
<FromGitter> <Blacksmoke16> yea not worth extra complexity if perf isnt a problem atm
<FromGitter> <j8r> Don't even know how to use this :|
<FromGitter> <Blacksmoke16> its like a decorator pattern afaik, takes the backend as an arg
alexherbo2 has quit [Ping timeout: 256 seconds]
renich has quit [Ping timeout: 256 seconds]
renich has joined #crystal-lang
alexherbo2 has joined #crystal-lang
alexherbo20 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo20 is now known as alexherbo2
<FromGitter> <codic12> Can I build a freestanding, i386 object file from a x86_64 linux system? (equivalent to `gcc -m32 -c kernel.c -o kernel.o`); `crystal build hw.cr --cross-compile --target i386-elf`, where hw.cr simply adds two numbers together, says it can't find c/dlfcn
alexherbo2 has quit [Ping timeout: 258 seconds]
alexherbo2 has joined #crystal-lang
<oprypin> codic12, where did u get that "i386-elf" thingy? it needs to be "i386-pc-linux-gnu". see also `crystal -v`
<FromGitter> <codic12> was just playing around; no, I want to build a freestanding binary (I'm trying to build a simple kernel)
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
alexherbo2 has joined #crystal-lang
alexherbo29 has joined #crystal-lang
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo29 is now known as alexherbo2
<oprypin> codic12, ok then implement kernel-less operations
<oprypin> i actually have no idea
<oprypin> standard library is so intertwined that u cant avoid including kernel-related files
<oprypin> i'd say that --prelude=empty would be a starting point, but it's mostly useless
<oprypin> instead maybe u can comment out `require`s in crystal source code until you get to somethign
<oprypin> actually no, much better is to supply your own "c/dlfcn"
<oprypin> crystal/src/lib_c/??????/c/dlfcn.cr
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Remote host closed the connection]
PixeLInc_ has joined #crystal-lang
<FromGitter> <codic12> but i would have to fork crystal for that?
<oprypin> codic12, well look, i have a way for you to not have to do that, but i surely you dont expect to not have to for it for such an involved project?
<oprypin> `CRYSTAL_PATH=/my_dir/ crystal build hw.cr` where /my_dir/c/dlfcn.cr exists
<oprypin> (might not work, i havent tred)
<FromGitter> <codic12> ah, so that sets the stdlib path? Well, in most languages I've tried to make a kernel in, I was able to just disable the stdlib