kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
bew has quit [Quit: WeeChat 2.1]
faustinoaq has joined #crystal-lang
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faustinoaq has quit [Quit: IRC client terminated!]
__marty__ has quit []
wuehlmaus has quit [Quit: Lost terminal]
Nathanaelle has joined #crystal-lang
rohitpaulk has joined #crystal-lang
FromGitter has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
baweaver is now known as baweaver_away
wuehlmaus has joined #crystal-lang
<FromGitter>
<decal> Is there a shard that will translate C function prototypes, or a shared library's exports into the appropriate `lib` declaration(s) for invocation by crystal?
<oprypin>
if it was easy and reliable, i would have already done it
<FromGitter>
<bararchy> oprypin: https://github.com/oprypin/crsfml/pull/25 ⏎ not forcing it on you, just making a suggestion, why do you think it's scary? also, it seems to compile and work great
<FromGitter>
<bararchy> it uses SMFL system libs
<FromGitter>
<bararchy> but auto-gen the voidsfml
<FromGitter>
<bararchy> which is only needed by this project
<FromGitter>
<bararchy> also, it allows for an actual "use this shard" feel
<FromGitter>
<bararchy> instead of do those stuff, then this, then this, now symlink here
marius has quit [Quit: baj]
marius has joined #crystal-lang
marius has quit [Quit: baj]
marius has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
faustinoaq has joined #crystal-lang
<oprypin>
i'm thinking about it
<FromGitter>
<bararchy> oprypin cool :)
<oprypin>
bararchy, i think sfml is fine for "simple almost text based game" - might even be the best choice in crystal currently
<oprypin>
there are some nice examples with text, too
<FromGitter>
<bararchy> I'm somewhere between ncurses and sfml
<FromGitter>
<bararchy> ncurses is hell on earth lol
<oprypin>
fitting name, i guess
<oprypin>
you will probably need a text wrapping implementation which sfml doesnt have but it's relatively easy to do
<FromGitter>
<bararchy> but it's damn simple
<FromGitter>
<bararchy> just really really ugly
<FromGitter>
<bararchy> i preffer sfml
That_Guy_Anon has quit [Remote host closed the connection]
That_Guy_Anon has joined #crystal-lang
<FromGitter>
<bararchy> oprypin how about a dedicated gitter\IRC for sfml? it's a big enough project I think to create one,
<crystal-gh>
[crystal] r00ster91 opened pull request #6039: Fix bug in at the --threads command (master...patch-15) https://git.io/vp0yb
ua__ has joined #crystal-lang
ua_ has quit [Ping timeout: 264 seconds]
ua_ has joined #crystal-lang
ua__ has quit [Ping timeout: 260 seconds]
ua_ has quit [Ping timeout: 264 seconds]
Ven`` has joined #crystal-lang
Ven`` has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
ua has joined #crystal-lang
<hmans>
Is there any kind of public roadmap for Crystal (beyond the issues/milestones/projects over at Github)?
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has quit [Ping timeout: 240 seconds]
thatguy1000 has joined #crystal-lang
thatguy1000 has left #crystal-lang [#crystal-lang]
duane has joined #crystal-lang
unshadow has joined #crystal-lang
<unshadow>
No Gitter, so IRC for now I guess
<unshadow>
oprypin: you here?
<oprypin>
unshadow, hi
kurko_ has joined #crystal-lang
DTZUZO has joined #crystal-lang
<unshadow>
(it's bararchy) How can I make another window grid in crsfml? like, I want main disply (map and char), then side disply (char info) and lower display (abilties?)
<unshadow>
or should I just render them all on the same window
<hmans>
If anyone cares, I just wanted to pump a few $ into Crystal via Bountysource, but it's not letting me because it prefers to throw API errors my way.
<hmans>
"Validation failed: Active support levels count Can't modify active rewards"
<faustinoaq>
hmans I guess you should send a twit to bountysource, I had similar errors in tha past and they solved it ;-)
<hmans>
faustinoaq: done already. Let's wait and see
greengriminal has quit [Quit: This computer has gone to sleep]
Ven`` has joined #crystal-lang
Ven`` has quit [Client Quit]
greengriminal has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
greengriminal has quit [Quit: Leaving]
<crystal-gh>
[crystal] sdogruyol closed pull request #6039: Fix bug at the --threads command (master...patch-15) https://git.io/vp0yb
badeball has quit [Remote host closed the connection]
duane has joined #crystal-lang
badeball has joined #crystal-lang
snsei has joined #crystal-lang
<FromGitter>
<Blacksmoke16> for future reference `invalid_option` refers to you supplying a argument that you do not have defined, NOT that the option of a given argument isnt correct
<Yxhuvud>
oprypin: that looks potentially very slow. I'd go about it by implementing gcd (which is a very simply recursive algorithm) and then use the fact that lcm(a,b) = a*b / gcd(a, b)
<FromGitter>
<j8r> working on disk statistics now... I've also searched for IO stats, but it seems we must being root
<Yxhuvud>
j8r: https://github.com/chef/ohai is a project that gives system information. it could give some information about how to give some information.
<oprypin>
Yxhuvud, i wanted to not use division. this is for a silly assembly-programming-game
<Yxhuvud>
oprypin: ok, it may be good enough if you have small numbers
<oprypin>
anything's good enough as long as you can sit through its execution (was good enough)
<FromGitter>
<j8r> thanks @yxhuvud !
<Yxhuvud>
j8r: especially the lib/ohai/plugins directory and its subdirectories
<FromGitter>
<j8r> thanks @bararchy :-D
<FromGitter>
<bararchy> nope, Thanks you @j8r great work! ⏎ TBH as I kinda slow you down maybe it will be better if you will be an Admin in the Hardware repo
<FromGitter>
<j8r> @bararchy If you do so, I will always try to wait a few community reviews before merging ;-)
<FromGitter>
<paulcsmith> @everdev It depends on if you want it at compile time or at runtime. For compile time you need to put that in a macro: `{% if flat?(:-prod) %}`
<FromGitter>
<paulcsmith> I *think* the flag is taken as-is so you need `-` but I can't remember off the top of my head
<FromGitter>
<everdev> i'm trying to use it at runtime
<FromGitter>
<paulcsmith> I think you may also need to pass the flag like this: `crystal src/app.cr -- --prod` but you'll have to experiment with it a bit
<FromGitter>
<paulcsmith> Or consider using an ENV var instead. It's a bit easier, but I don't know how you're planning to use it so maybe it won't work
<FromGitter>
<paulcsmith> Does anyone know if it is possible to catch compile time errors for the purpose of testing them? https://play.crystal-lang.org/#/r/3zen I'd love to test that macro that it raises the right error, but I'm not sure that's possible :S
<FromGitter>
<j8r> @paulcsmith to debug macros you put a `{% debug %}`
<FromGitter>
<paulcsmith> @j8r Sorry I wasn't clear. It's not for debugging, it's that a library I'm working on raises with a nice error message whe passing the wrong things to a macro
<z64>
he wants to write a spec, like you would with `expect_raises` with other code
<FromGitter>
<paulcsmith> Yep exactly :)
<FromGitter>
<j8r> ha ok :-)
<z64>
i'm not sure. you might look through crystals specs for something similar (i'm looking myself), but i can't think of something that behaves like that off the top of my head
<FromGitter>
<j8r> What `assert_macro` does?
<FromGitter>
<j8r> I have seen this, but don't know what it is :-/
<FromGitter>
<sdogruyol> actually I can compile fine but `make clean std_spec` fails with `/home/sdogruyol/playground/crystal/crystal/src/openssl/ssl/context.cr:4: undefined reference to `SSLv23_method' ⏎ `
<oprypin>
there was an old commit that would cause that i think\
<FromGitter>
<sdogruyol> yeah, there's
<oprypin>
but you should make sure you're in a clean state
<oprypin>
`make clean` alone would be a good step
<FromGitter>
<sdogruyol> yeah..I'm already doing that
<oprypin>
and you should have the same versions of openssl installed as i showed, and not libressl
<FromGitter>
<sdogruyol> not sure why this is not working
<FromGitter>
<j8r> In a way or in an other, it's nice to have LibreSSL supported along with OpenSSL
sz0 has joined #crystal-lang
<FromGitter>
<sdogruyol> I wish we don't do hacky stuff though
snsei has quit []
<crystal-gh>
[crystal] esse opened pull request #6043: add with_object with block to iterator (master...add_with_object_to_iterator) https://git.io/vpEFJ
<FromGitter>
<fridgerator> anyone know how I would represent `0L` when binding to c ?
<FromGitter>
<fridgerator> long integer value with all bits set to 0, I think ?
<Yxhuvud>
fridgerator: Simply 0, or 0_i32 if you want to be explicit.
<FromGitter>
<fridgerator> alrighty then, thanks
rohitpaulk has joined #crystal-lang
That_Guy_Anon has quit [Quit: Leaving]
<FromGitter>
<onnoowl> Hey, quick question... How can I view the byte representation of Structs in crystal? Something like `my_struct_instance.to_slice.hexstring` ?
<crystal-gh>
[crystal] asterite opened pull request #6044: Let `p` use inspect, `pp` just pretty print values, and introduce `p!` and `pp!` which also show the expression to print (master...feature/p-pp-bang) https://git.io/vpEhO
<oprypin>
>> v = Time.now; p pointerof(v).as(UInt8*).to_slice(sizeof(Time)).hexdump # @onnoowl
<DeBot>
oprypin: "00000000 4e cf 7a d2 0e 00 00 00 68 2c 50 16 02 00 00 00 N.z.....h,P....." - more at https://carc.in/#/r/3zg4
<17WABAUEN>
[crystal] asterite pushed 9 new commits to master: https://git.io/vpEje
<17WABAUEN>
crystal/master c496bf9 Johannes Müller: WebSocketHandler fails when Sec-WebSocket-Version is missing/invalid
<17WABAUEN>
crystal/master 0b920b1 Johannes Müller: Use WebSocket in all headers
<17WABAUEN>
crystal/master 81f0abf Johannes Müller: WebSocketHandler handles missing Sec-WebSocket-Key
<oprypin>
>> v = Array(Int32).new(5); puts v.as(UInt8*).to_slice(instance_sizeof(Array(Int32))).hexstring # for reference types
<DeBot>
oprypin: 0b00000000000000050000000000000080cf55a1cc550000 - more at https://carc.in/#/r/3zge
duane has quit [Ping timeout: 248 seconds]
moei has quit [Quit: Leaving...]
<crystal-gh>
[crystal] asterite opened pull request #6045: Compiler: don't fail when typeof argument doesn't have a type (master...bug/5717-typeof-regression) https://git.io/vpueZ
<crystal-gh>
[crystal] asterite closed pull request #5192: Disallow typeof in type restrictions (master...disallow-typeof-in-type-restricitons) https://git.io/vFTRG
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh>
[crystal] sdogruyol closed pull request #6031: Mark .editorconfig as root (master...fix/editorconfig/root) https://git.io/vpBKs
<crystal-gh>
[crystal] asterite opened pull request #6046: Parser: fix parsing of macro argument followed by a newline (master...bug/5966-macro-parse-newline) https://git.io/vpuvU
<FromGitter>
<sdogruyol> I don't like PRs which are like 2-3 years old :P
<FromGitter>
<straight-shoota> even if PR's are outdated, the ideas often are not
<FromGitter>
<asterite> but if nobody is going to do something about them, it's better to close them
<FromGitter>
<straight-shoota> true
<FromGitter>
<sdogruyol> it's not like we're deleting them
<FromGitter>
<straight-shoota> yet I'd rather have a human do that
<FromGitter>
<sdogruyol> they're just closed..and you can search
<oprypin>
do they hurt anyone when they're open
<FromGitter>
<sdogruyol> well, sometimes you forgot to rebase and shit happens (broke master :P)
<FromGitter>
<straight-shoota> really old PRs usually require a rebase anyway
<oprypin>
you wouldnt close PRs that are recent enough to be mergeable
<FromGitter>
<sdogruyol> I mean, if we get a steady pace of PR review..we don't need a bot eventually
<FromGitter>
<straight-shoota> anyway, the number of open issues/PRs and the daily activity are by far not as high as it would require a bot to automatically close issues. That's not very welcoming.
<FromGitter>
<asterite> I personally don't mind open PRs or issues, but some does. But then, Ruby has thousands of open issues, and let's not talk about Java, PHP, Go, D...
<FromGitter>
<asterite> Rust...
<FromGitter>
<straight-shoota> If you personally close a PR/issue with a nice thank you and some explanation, that spreads love and encourages to engage in the community.
<FromGitter>
<straight-shoota> Like you did a few in the last days @asterite 👍
<oprypin>
i think it's more bad than good to close for the sake of closign
<crystal-gh>
[crystal] asterite opened pull request #6048: Parser: fixed quoted heredoc followed by call (master...bug/6030-quoted-heredoc) https://git.io/vpuT8
<FromGitter>
<sdogruyol> agree oprypin
<FromGitter>
<sdogruyol> yeah, we should be nice to people for their effort, %100 👍 @straight-shoota
<FromGitter>
<sdogruyol> calling it a day everyone, have a good night and sleep tight 👋
<FromGitter>
<wontruefree> what is left before 1.0?
<oprypin>
girng, it's not a significant difference
<FromGitter>
<wontruefree> I remember concurrency and crossplatform support being a big thing
<FromGitter>
<girng> @oprypin i was worried about that too, might be negligible
<FromGitter>
<girng> i was looking at the keyboard "thicknesses". the one im using now (slim) is only 0.75inches off the ground. the mechanical one is a whopping 1.5 inches
<FromGitter>
<girng> that's why my wrists are angled up more, and it hurts :(
<FromGitter>
<girng> @oprypin that one i linked is only 0.89 inches, which is actually pretty close to the 0.75. it might actually work for me, but then again, it's 2x more the price..
<FromGitter>
<Blacksmoke16> what are your thoughts on adding like `.second` `.third` etc, probably could use a maco to easily generate that given an array of string names
<FromGitter>
<Blacksmoke16> iterate over array using index for return index
<FromGitter>
<girng> LOL wtf i was looknig at that one earlier today
<oprypin>
maybe because i had already sent it
<FromGitter>
<girng> the only reason why i think i exited tab is i saw the shift key ontop of the arrrow. i use the right shift key alot for programming to create {}'s brackets, etc. does the arrow key get in the way at all?
<oprypin>
no
<FromGitter>
<girng> i just don't want to accidentally hit the up arrow key when i think i'm hitting shift lol
<FromGitter>
<girng> that's a good deal, $10. ima see if there if they can ship to US
<oprypin>
there should be plenty of mac keyboard clones
<FromGitter>
<girng> ima buy it
<oprypin>
i had this one as the only option in european amazon with US layout, you should be able to find much more options
<FromGitter>
<girng> that'sperfect. 0.787402inches from ground
<FromGitter>
<girng> like exactly what i have =] nice find thanks
<oprypin>
girng, note about downsides that mine has: if you press a lot of keys in a short period (like in games) it can stop working and needs a reconnect; the silvery background wipes away into white after half a year
<oprypin>
no F12 key could get annoying, i dunno
<oprypin>
pgup pgdown needs getting used to but i prefer it this way now
<FromGitter>
<girng> @oprypin thank you for the heads up. well, that's concerning about the gaming part then. the game i'm developing, actually involves WASD movement with skill spamming and using flasks (potions), and other hotkeys.. i hope that won't be an issue
<FromGitter>
<oprypin> it's platformers
<FromGitter>
<oprypin> what you're describing shouldn't be problematic
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]