<FromGitter>
<Blacksmoke16> TIL thats shorthand for defining a proc from existing method
<FromGitter>
<Blacksmoke16> it looks like in your case you still have to specify the param type for your methods
<FromGitter>
<Blacksmoke16> like `->nfa_plus(String)` etc
<FromGitter>
<DanilaFe> ah, ok
<FromGitter>
<DanilaFe> let me try that
<FromGitter>
<DanilaFe> that worked
<FromGitter>
<DanilaFe> thank you :)
<FromGitter>
<Blacksmoke16> np :)
marmotini_ has quit [Ping timeout: 268 seconds]
DTZUZO_ has joined #crystal-lang
<FromGitter>
<proyb6> Could I code in x86 assembly just like Rust could embed assembly code?
<FromGitter>
<Blacksmoke16> :shrug:
<FromGitter>
<markrjr> @straight-shoota I have all the requisite libraries setup and can cross compile. If I make a change to something in the standard library, how do I test that? How do I get the new change into the version of crystal I'm cross compiling with?
<Heaven31415>
proyb6 do you ask whether you can embed assembly in your crystal code?
<FromGitter>
<markrjr> @straight-shoota Figured it out!
<FromGitter>
<iambudi> what’s is ide/code editor that has better support of crystal?
<FromGitter>
<Blacksmoke16> sublime has an ok plugin
<FromGitter>
<Blacksmoke16> intellij has support as well, vcode too iirc
<FromGitter>
<Blacksmoke16> first two are mostly just highlighting tho
<FromGitter>
<Blacksmoke16> vscode*
<FromGitter>
<markrjr> Wait, I take it back.
<FromGitter>
<fusillicode_twitter> @straight-shoota sorry for the bother, I just wanted to thank you for your support yesterday and tell you that I found the problem in my original code (i.e. the one with nested hashes). It was related to the access of an object property that wasn't actually exposed via a getter 😅 ⏎ I'll try to switch to your suggested solution ASAP. ⏎ Anyway thanks again for all your help & suggestions! These
<FromGitter>
... are the things that makes a community great! 🙇♂️ 👏
<FromGitter>
<markrjr> Number of processors on the machine for the cpu_count function in the System module.
<FromGitter>
<Blacksmoke16> looks so simple ha
<FromGitter>
<markrjr> Probably in the grand scheme of things, learned a lot tho.
<FromGitter>
<Blacksmoke16> thats the impt part
<FromGitter>
<markrjr> Yup.
<Heaven31415>
There is a promising extension for VS Code, it even has a support for SCRY language server (still very immature), it would be nice for people to work on that.
rohitpaulk has quit [Ping timeout: 244 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter>
<proyb6> Heaven31415 yup whether I could embed assembly code like Rust could
<FromGitter>
<j8r> @michelson i personally prefer this syntax, clearer: `Array(Hash(String, String)).new`
ua has quit [Read error: Connection reset by peer]
ua has joined #crystal-lang
<FromGitter>
<straight-shoota> @markrjr Awesome! I hope we can get you enlisted for contributing for #5430 =)
Raimondii has joined #crystal-lang
ashirase has quit [Ping timeout: 268 seconds]
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
ashirase has joined #crystal-lang
<jokke>
straight-shoota i saw you filed an issue at baked_file_system about it not being tagged correctly. Is there any way to prevent shards from thinking it has to fetch the repo every time?
<jokke>
i have two such shards as deps in my project and it's super annoying
<FromGitter>
<bew> jokke fyi I'm also on arch :P
<jokke>
traitor!
<jokke>
off to irc with you!
<FromGitter>
<bew> Ahahah
<jokke>
i can't handle any other worldview than that all arch users use tiling window managers and tiny monospaced fonts everywhere and the only gui program they use is the browser whenever lynx isn't enough.
bew has joined #crystal-lang
<bew>
I'm definitely using a tiling WM :P
<jokke>
\o/
<bew>
I just never really configured my weechat, and I'm also mostly on my phone, so gitter is easier
<jokke>
bew: r u kidding? weechat-android is the bomb! :)
rohitpaulk has quit [Ping timeout: 272 seconds]
<bew>
hmm
<bew>
i know I really should try configuring a ZNC to fix all 'history' issues I have with irc, but I also don't have a server to put it on.. (one day I'll do it, I promise)
sagax has quit [Ping timeout: 252 seconds]
<oprypin>
bew, just install another arch, how hard could it be
<oprypin>
there's still no good irc client to connect to that ZNC though lol
<oprypin>
I mean on Android&
<f1refly>
configuring znc is super easy and you can do it on a 3$ vps
<f1refly>
Or even better on a raspberry pi that sits on your cupboard somewhere
<jokke>
znc is shit. :) What you want is weechat running on a server in tmux. Then you either connect to it directly via ssh or mosh on desktop or use weechat-android to connect to it via its relay protocol. Or glowing bear on ios.
<oprypin>
terminal ui is shit though
<jokke>
wut?
<jokke>
there's no better ui
<jokke>
well there is: no ui at all
<jokke>
but for irc i'd argue you need one :)
<f1refly>
terminal ui is godlike
<f1refly>
I don't think you need a ui for irc at all
<jokke>
well reading messages is a plus in irc :)
<oprypin>
just use tail -f on logs and also open a raw socket when you want to say something
<jokke>
mhm
<jokke>
terminal ui is as shit as your terminal though. if your terminal doesn't have url support for example...
<oprypin>
no, it's just shit in general
<FromGitter>
<bew> Remote tmux is "good luck if you're on phone"
<jokke>
bew: which is why i said on your phone you use weechat-relay protocol
<jokke>
oprypin: i guess everyone is entitled to their opinion :)
<jokke>
*have their own
<FromGitter>
<bew> Yeah i heard, but doesn't this need you to have a weechat running somewhere?
<jokke>
exactly
<jokke>
11:58:03 jokke | znc is shit. :) What you want is weechat running on a server in tmux. Then you either connect to it directly via ssh or mosh on desktop or use weechat-android to connect to it via its relay protocol. Or glowing bear on ios.
<FromGitter>
<bew> Why znc is shit?
<jokke>
because it doesn't preserve buffers in any meaningful way and sending you a bunch of buffered lines on connect is just annoying. with weechat you are sent the exact content you see in a buffer and when you scroll up, more is fetched.
<jokke>
i used znc for a while and i'd never want to switch back from weechat relay
<jokke>
things like marking buffers read and such are also synchronized of course
<jokke>
and all your plugins
<jokke>
so if you have a url shortener or something installed that's going to work on every client
<jokke>
anyway. to bring things back on topic: any thing i can do to fool shards.yml to not fetching incorrectly tagged shards?
<jokke>
*fool shards
<jokke>
i can set the version to whatever is set in the shards.yml of the shard which will fix the problem locally but i can't push this since it will break CI.
bew has quit [Quit: WeeChat 2.2]
<FromGitter>
<straight-shoota> jokke, you might try installing shards master. I'm not sure but there was an issue fixed related to refs resolving
rohitpaulk has joined #crystal-lang
marmotini_ has joined #crystal-lang
Heaven31415 has joined #crystal-lang
<Heaven31415>
Gi
<Heaven31415>
Hi*
<FromGitter>
<fusillicode_twitter> Hi guys quick question: is there an hidden shard to help mocking an underlying db and/or a shard like the database cleaner gem? 🤔
<jokke>
hm ok
Heaven31415 has quit [Quit: Leaving]
<FromGitter>
<straight-shoota> why does building libevent require openssl??
rohitpaulk has quit [Ping timeout: 252 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
marmotini_ has quit [Ping timeout: 244 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter>
<yxhuvud> @straight-shoota can you set EVENT__DISABLE_OPENSSL:BOOL=OFF in the build options?
rohitpaulk has quit [Ping timeout: 252 seconds]
<RX14>
that'd be cmake -DEVENT__DISABLE_OPENSSL=YES
<FromGitter>
<straight-shoota> yeah, I know how to disable it. I was just wondering why it needs openssl
<FromGitter>
<vladfaust> Which is correct: "there are no jobs available" or "there is no jobs available"?
<FromGitter>
<fridgerator> first one
<FromGitter>
<j8r> or just "No jobs available" :)
<RX14>
@straight-shoota we don't use that :)
<RX14>
instead we have a custom BIO which just makes normal crystal IO calls
<FromGitter>
<straight-shoota> yeah, I know. It was just a general question
<FromGitter>
<proyb6> @vladfaust No opening jobs
tilpner has quit [Remote host closed the connection]
<FromGitter>
<vladfaust> I'm not sure
<FromGitter>
<proyb6> Sorry is “No jobs opening”
<FromGitter>
<Blacksmoke16> "There are no positions currently available"
<FromGitter>
<proyb6> “no positions available at this time“
<FromGitter>
<proyb6> Then give user option to subscribe to your emailing...
wontruefree has joined #crystal-lang
<FromGitter>
<vladfaust> That's all great, but I want either "there are no any jobs available" or "there is no any jobs available"
<FromGitter>
<Blacksmoke16> neither of those is proper english, `There are no jobs available` would be fine
tilpner has joined #crystal-lang
<FromGitter>
<Blacksmoke16> `are no any jobs`?
<FromGitter>
<vladfaust> You don't like the word "available"?
<FromGitter>
<Blacksmoke16> no im saying in your examples you had `are no any jobs`?
<FromGitter>
<Blacksmoke16> the `any` isnt needed
<FromGitter>
<vladfaust> I see
<jhass>
funny how "there aren't any jobs available" sounds ok to me but "there are not any jobs available" does not
<FromGitter>
<vladfaust> Thanks
<FromGitter>
<Blacksmoke16> depending on what you are using this for, it could either be like `There are no jobs available`, for a more user facing portion/heading, or `No jobs available` if its meant for like a list of jobs but there just arent any
<FromGitter>
<Blacksmoke16> context plays a roll as well
<FromGitter>
<vladfaust> Yeah, it's about seeing a list of jobs and it's empty at the moment
<jhass>
jobs as in employment positions or units of work a system does?
<FromGitter>
<Blacksmoke16> then id keep it short and just say `no jobs available`, which gets your point across while not taking up a bunch of room
<FromGitter>
<vladfaust> It's about employment positions, @jhass
<FromGitter>
<vladfaust> Okay, makes sense, thanks guys
<jhass>
then I'd include a call to action, "No open positions, check back soon!"
<FromGitter>
<vladfaust> Yeah, sure :)
<FromGitter>
<roblally_twitter> Jobs: 0
<FromGitter>
<bew> \o/
Raimondii has joined #crystal-lang
<FromGitter>
<Blacksmoke16> you declare an abstract class method?
<FromGitter>
<Blacksmoke16> its its own method that is a global version of `#sub`
<FromGitter>
<michelson> oh I see
<FromGitter>
<michelson> thanks
Heaven31415 has joined #crystal-lang
<Heaven31415>
Hello everybody!
<FromGitter>
<michelson> Guys, I'm trying to implement a recursive method with block. But i'm receiving an Exception: `in line 20: recursive block expansion: blocks that yield are always inlined, and this call leads to an infinite inlining ⏎ `