Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 07 20:55
    straight-shoota milestoned #12814
  • Dec 07 20:55
    straight-shoota milestoned #12814
  • Dec 07 19:40
    straight-shoota closed #12812
  • Dec 07 19:35
    straight-shoota closed #12782
  • Dec 07 19:34
    straight-shoota closed #12818
  • Dec 07 19:34
    straight-shoota closed #12824
  • Dec 07 13:49
    Blacksmoke16 labeled #12825
  • Dec 07 07:05
    naqvis labeled #12825
  • Dec 07 07:05
    naqvis opened #12825
  • Dec 07 02:47
    Blacksmoke16 reopened #8468
  • Dec 07 02:45
    Blacksmoke16 closed #8468
  • Dec 06 13:16
    straight-shoota milestoned #12824
  • Dec 06 13:16
    straight-shoota milestoned #12824
  • Dec 06 13:07
    straight-shoota edited #11555
  • Dec 06 11:30
    straight-shoota milestoned #12782
  • Dec 06 11:30
    straight-shoota milestoned #12782
  • Dec 06 09:51
    BlobCodes synchronize #12687
  • Dec 06 09:34
    caspiano labeled #12824
  • Dec 06 09:34
    caspiano opened #12824
  • Dec 06 09:34
    caspiano labeled #12824
Kent 'picat' Gruber
@picatz
I gotta go do some stuff, but I'll be back later :v:
Weston
@wwselleck
l8r
Weston
@wwselleck
oh boy this whole block/yield stuff is going to take some practice.
it seems similar to nodeish callbacks on the surface, but they're used very differently it seems
Kent 'picat' Gruber
@picatz
It's not too bad, but takes some getting used to: https://gist.github.com/picatz/7f280bea5b8cf05491df95fbb445d78c
You can do some nifty things with blocks.
Best thing to do is load up crystal play and play around with stuff.
For really small examples.
Stephan Langeveld
@Fanna1119
whats the difference between block one and 2 ?
1.upto(100) do |x|
    puts x
end

1.upto(100) {|x| puts x}
Kent 'picat' Gruber
@picatz
Basically a do can be a { and a end can be a }.
So, my understanding is, basically nothing.
Stephan Langeveld
@Fanna1119
@picatz ahh thank you :), coming from a non ruby background. i am still in the phase where i don't what works and what doesn't as well as not sure what is the "right" way of doing some things just yet haha
Kent 'picat' Gruber
@picatz
No worries :+1:
I don't mind helping out, at least as much as I can :joy:
cevarief
@cevarief
Is it possible to call a class without instantiating but still keep overloading?
cevarief
@cevarief
yes possible
But it should be all using self. Can self call non self method?
Rubi
@codenoid
Rubi
@codenoid
nice, i use super tab
From IRC (bridge bot)
@FromIRC
<Groogy> Morning!
<vegai> top of the mornin to you laddies
unreadable
@unreadable
morning fellows
Serdar Dogruyol - Sedo セド
@sdogruyol
Morning and have a good week everyone
unreadable
@unreadable
and a productive one as well ;)
Stephan Langeveld
@Fanna1119
when you use a c binding in crystal and compile your crystal file, is the c library included into the compilation ?
ShalokShalom
@ShalokShalom
@picatz somebody here told and link me, that there is actually a difference between {} and do/end
ShalokShalom
@ShalokShalom
Papierkorb: I just read your line "Though I'm currently most interested in Widgets, as they're the definitive source of correct native look n' feel" again and realised, that there is stuff like Kirigami, which provides a native look n`feel standard for QML: https://dot.kde.org/2017/08/02/plasma-rocks-akademy
Its a Tier1 as told, so works without any other KDE framework. :)
From IRC (bridge bot)
@FromIRC
<Groogy> @Fanna1119 yes if it is a statically linked library I think it is?
<Groogy> but if it is a shared library it will onmly contain the code to dynamically link with it
Stephan Langeveld
@Fanna1119
@FromIRC just to clarify, a shared a library is usually ".so", and statically linked is .o ?
From IRC (bridge bot)
@FromIRC
@Fanna1119, I'm a bot, bleep, bloop. I relay messages between IRC (#crystal-lang on chat.freenode.net) and here
Stephan Langeveld
@Fanna1119
or do i have it backwards haha
From IRC (bridge bot)
@FromIRC
<Groogy> statically linked is .a on Linux at least
<Groogy> it's an archive of object(.o) though
<Groogy> but I am not 100% sure because I haven't tried linking statically with Crystal yet
Rubi
@codenoid
agree
schoening
@schoening
should modules start with an uppercase?
Bar Hofesh
@bararchy
It seems that read_timeout and write_timeout does not work for pipes
From IRC (bridge bot)
@FromIRC
<vegai> @schoening: https://crystal-lang.org/docs/conventions/coding_style.html here's something to start with :⁠)
schoening
@schoening
ups
.. wrong chat sorry
@vegai thank you, crystal has it all specified nicely. I was actually trying to ask in the typescript room :p
From IRC (bridge bot)
@FromIRC
<vegai> :}
Bar Hofesh
@bararchy
Can I cast an Array(UInt8) to Slice(UInt8) ?
Ghost
@ghost~55586c4815522ed4b3e08557
You should be able to do #to_slice on it
Bar Hofesh
@bararchy
@bew
Error in line 3: undefined method 'to_slice' for Array(UInt8)
From IRC (bridge bot)
@FromIRC
<Papierkorb> @bew, that never went through lul
Bar Hofesh
@bararchy
So... no way I guess right ?
Ghost
@ghost~55586c4815522ed4b3e08557
Huh right not defined... Why? Idk