sz0 has quit [Quit: Connection closed for inactivity]
<watzon>
Well I've updated it, fixed most of the bugs I could find, you can now type in the editor, it has some formatting options, and just works better overall https://watzon.me/projects/json-to-crystal
<watzon>
Fuck. Still has a bug. Fix incoming soon
txdv has quit [Ping timeout: 248 seconds]
<watzon>
Ok bug fixed
bijan_ has quit [Quit: System has gone to sleep. ZZZzzz…]
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
txdv has joined #crystal-lang
faustinoaq has joined #crystal-lang
faustinoaq has quit [Ping timeout: 260 seconds]
<FromGitter>
<muizmusaddik> Hi, how do you compare this and make it ```true```: "a" == 'a' ?
<FromGitter>
<muizmusaddik> i cant find type casting in the documentation
<FromGitter>
<aisrael> `.to_s`
<FromGitter>
<muizmusaddik> yeah that works, thanks
<FromGitter>
<aisrael> Casting is generally expressed using `.as`. E.g. `.as(String)` (DB) or `.as_i64` (YAML/JSON::Any)
<FromGitter>
<muizmusaddik> i see
<FromGitter>
<aisrael> While conversion is generally express using `.to_`. E.g. `to_s`
hightower2 has quit [Ping timeout: 256 seconds]
DTZUZO has joined #crystal-lang
<FromGitter>
<aisrael> Is there a way to restrict the type of a splat? E.g. `def foo(*args : Tuple(String…)`?
<FromGitter>
<ezrast> @aisrael If you call string-y methods on the elements of args, they will be effectively restricted. Does that not work for your use case, or are you just trying to be more explicit?
<FromGitter>
<aisrael> Trying to be more explicit. Sorry, bad habit coming from Java days (even with a decade of Ruby in between)
<FromGitter>
<ezrast> I wouldn't call it a bad habit; was just curious (I also don't have a definitive answer for you but I'm not aware of a way to do it).
<FromGitter>
<aisrael> Right now, if I really wanted to I’d have to `foo(a0 : String)` then `foo(a0 : String, a1 : String)` and so on :p
<FromGitter>
<yxhuvud> so when are you coming back to work? :)
duane has joined #crystal-lang
chrisarcand has quit [Remote host closed the connection]
<FromGitter>
<Svenskunganka> Is there a particular reason why some modules in the stdlib implements a method that simply raises an error rather than not implementing it at all? For example, `IO` implements the `#seek` method, but raises an error. In this particular example, wouldn't it be better to have an abstract class, e.g `IO::Seeker` that requires implementing the `#seek` method, like Golang's `io.ReaderAt`?
<FromGitter>
<straight-shoota> Yeah it's not really a nice interface. By default, `IO` provides methods for reading and writing but obviously, not every IO can do both.
<FromGitter>
<straight-shoota> IIRC there was some talk about splitting this into `IO::Readable` and `IO::Writable` or something...
moei has joined #crystal-lang
<FromGitter>
<Svenskunganka> Was that discussion held here? Can't seem to find it on GitHub
<FromGitter>
<xfbs> Ohh I see :p seems like a pain tho, I think straight crystal is easier no?
<FromGitter>
<faustinoaq> My boss just use paid Microsoft Technologies. He said me that he had bad experiences with open source technologies his community support 😟
<FromGitter>
<Svenskunganka> Now I'm curious what those bad experiences were :D
<FromGitter>
<faustinoaq> I'm using ASP.NET/Ext.net and MSSQL, And Ext.net license price is about 5000 $ ⏎ ⏎ @Svenskunganka He tried to use Django/Angular before
<FromGitter>
<faustinoaq> I hope when crystal/amber/kemal/lucky become production ready, some companies (like Manas or Thoughbot, etc) can give paid support for projects and institutions like Panama Canal 😄
<FromGitter>
<j8r> i will never understand why it's so important for them to have a support. If the program passes all the tests and works 1 day, it will work all other ones. If not, just del and repop the container/VM, automatically done.
maattdd_ has joined #crystal-lang
<FromGitter>
<faustinoaq> > i will never understand why it's so important for them to have a support ⏎ ⏎ @j8r According to my supervisor, they need to have a support because they need to "maintain" old projects from teams and other developers ⏎ ⏎ In Panama Canal exists some critical software made 10 years ago in Visual Basic/C# and is still being maintained and "supported" by Microsoft 😅
<FromGitter>
<j8r> ok, they haven't internal ressources that support their softs
<FromGitter>
<j8r> or work on it
<FromGitter>
<faustinoaq> @j8r Nop, We use Microsoft stack (Windows Server, Visual Studio and MSSQL) , Spark/Oracle/Solaris and Genexus ⏎ ⏎ All paid software with very expensive licenses and support :(
<crystal-gh>
[crystal] MakeNowJust opened pull request #5733: Remove duplicated word 'the' (master...fix/remove-the-the) https://git.io/vARyh
<FromGitter>
<faustinoaq> Spark architecture, not the framework 😅 ⏎ ⏎ The IT department not even like Java
<FromGitter>
<j8r> hum I see 😐
<lvmbdv>
i'm still pissed about no crystal at gsoc
return0e has quit [Ping timeout: 248 seconds]
<FromGitter>
<faustinoaq> Well, maybe I can show him the power of crystal and other open source technologies 😎
<FromGitter>
<j8r> they can buy some Red Hats, kinf of open source with support
return0e has joined #crystal-lang
<FromGitter>
<faustinoaq> Yeah, thatś a good option, I remember someone tried to support crystal on red hat
return0e has quit [Read error: Connection reset by peer]
<FromGitter>
<faustinoaq> It had some problems because crystal is written in crystal, and seems that red hat doesn accept the binary to compile crystal itself
<FromGitter>
<Jens0512> Hello fellow crystal lovers :D ⏎ I'll just shamelessly ask for help with small and simple encryption library "crypt" https://github.com/Jens0512/crypt if anyone is interested. But know that i have only been at programming for a year, and a lot of the code is probably very bad quality
<FromGitter>
<Svenskunganka> @faustinoaq When you mentioned the 10 years old software, I think of my mother (who is an IBM Mainframe COBOL programmer) who always complains that she has to dig up and debug COBOL modules where the author has passed away because they were written in like the 60s-70s. Talk about long-term support 😅
<FromGitter>
<Svenskunganka> It's quite amazing that such old software is still used in production by banks :P
DTZUZO has joined #crystal-lang
<faustinoaq>
@Svenskunganka XD, Here in Panama COBOL is still running in most banks and companies. Businessmen are like "paid once, use forever" :)
<FromGitter>
<Svenskunganka> Yeah it seems to still be widely used throughout the world in banks. How many students nowadays learns COBOL and mainframes? Must be really hard to find employees that can stick around for some years
<FromGitter>
<Svenskunganka> But they seem to want to start migrating to Java xD
<FromGitter>
<j8r> Searching Mainframe Devops Engineers in COBOL 😄
<FromGitter>
<Svenskunganka> 😆
<faustinoaq>
COBOL looks easy, I remember my professor of Software engineering told me that her company used a tool named "Crystal reports" to migrate/use their cobol tables on Visual Studio
<FromGitter>
<Svenskunganka> It is quite unique in that it's very wordy and reads like a text document rather than code.
<faustinoaq>
Last year I told my professor I was working with crystal and She thought I was working with "Crystal report" XD
<FromGitter>
<j8r> haha
<FromGitter>
<Svenskunganka> Oh so that's what Crystal reports is that always show up in my Google searches when I google for something related to Crystal (-lang)
<faustinoaq>
Yep
<faustinoaq>
Crystal reports was quite popular
return0e has joined #crystal-lang
<FromGitter>
<Jens0512> Almost all searches i do about crystal-things (the lang) brings crystal reports...
flaviodesousa has quit [Ping timeout: 260 seconds]
rohitpaulk has quit [Ping timeout: 256 seconds]
<FromGitter>
<bararchy> @faustinoaq damn, I feel your pain bro, in my old job they wanted me to transition to C# as well, this is part of the reasons we started our startup NeuraLegion
<faustinoaq>
@bararchy thank you for your comment! Well, I'm trying to enjoy C#. Sometimes I do fun stuff like cross compiling crystal code and using it on C# :)
Artifinch has joined #crystal-lang
alex`` has quit [Ping timeout: 256 seconds]
<Artifinch>
I’m a crystal newbie, so sorry if I’m missing something stupidly obvious but I’ve got a quick question - is it possible to define variables and a function that uses them in the top level domain, or must the function be called with the variables passed as parameters?
rohitpaulk has joined #crystal-lang
<jsn->
Artifinch, no, iirc you can't do that. You can use class variables instead, though
<Artifinch>
That’s what I have been using as a workaround. Thanks!
Artifinch has quit [Quit: Page closed]
<crystal-gh>
[crystal] rodrigopinto opened pull request #5734: Documenting `Indexable#zip` and `Indexable#zip?` methods. (master...rp-add-docs-to-indexable-zip-methods) https://git.io/vA0OI
<FromGitter>
<faustinoaq> @sdogruyol @elorest @marksiemers @eliasjpr RX14, do you have some idea? Latest round shows a big difference between crystal and crystal-radix
<RX14>
either my PR to change the DB params is somehow having an affect
<RX14>
OR
<RX14>
a bug
<RX14>
in which crystal doesn't shut down properly
<RX14>
and likely only the very first test reaches full speed
<RX14>
somehow
<FromGitter>
<faustinoaq> We have been fighting with some issues related to file descriptors in amber, I think the only way to gain most performance is profiling it and see what is slow