01:45
frost joined
02:36
frost left
02:49
frost joined
|
|||
Yeuph | Hey guys, I'm pretty new to programming. I've played with some *really* simple Python programs and C++ text-based games before, but for all practical purposes I'm a complete beginner. | 03:04 | |
I believe Raku installed correctly and I've got Comma running. I'm noticing that I can't run (SHIFT + F10) files in Comma like I could with Python, the triangle run indicator just won't select and shift+F10 doesn't do anything either. | |||
Not really sure what to do | |||
Hey guys, I'm pretty new to programming. I've played with some *really* simple Python programs and C++ text-based games before, but for all practical purposes I'm a complete beginner. | 03:06 | ||
I believe Raku installed correctly and I've got Comma running. I'm noticing that I can't run (SHIFT + F10) files in Comma like I could with Python (PyCharm), the triangle run indicator just won't select and shift+F10 doesn't do anything either. | |||
03:08
discord-raku-bot left,
discord-raku-bot joined
|
|||
Hey guys, I'm pretty new to programming. I've played with some *really* simple Python programs and C++ text-based games before, but for all practical purposes I'm a complete beginner. | 03:12 | ||
I believe Raku installed correctly and I've got Comma running. I'm noticing that I can't run (SHIFT + F10) files in Comma like I could with Python (PyCharm), the triangle run indicator just won't select and shift+F10 doesn't do anything either. Using Windows | |||
03:41
frost left
04:09
frost joined
04:18
frost left
|
|||
thowe | haven't used Windows since the 90s and never used Comma; I'm no help here. | 05:40 | |
08:14
frost joined
08:19
frost left
08:25
frost joined
|
|||
MasterDuke | @Yeuph you probably need to point comma at your raku install. for me, it's under File -> Project Structure -> Raku Compilers | 09:15 | |
stevied | <@285219620208771072> you gave up on vim already? | 12:53 | |
<@285219620208771072> on simple option to get started quickly is: replit.com/languages/raku | 12:58 | ||
@Yeuph#9974 one simple option to get started quickly is: replit.com/languages/raku | 12:59 | ||
Yeuph | Okie doke. I'll play around with that when I get home from work. Ty ty | 13:30 | |
14:52
frost left
15:22
frost joined
16:22
frost left
16:38
wingfold joined
16:50
wingfold left
17:25
TempIRCLogger left,
TempIRCLogger joined
17:26
TempIRCLogger left,
TempIRCLogger joined,
TempIRCLogger left,
TempIRCLogger joined
17:43
discord-raku-bot left,
discord-raku-bot joined
20:22
discord-raku-bot left,
discord-raku-bot joined
|
|||
stevied | how can I get the attributes and values of an object dumped out to a hash? | 20:35 | |
Anton Antonov | @stivied This SO discussion has relevant links: stackoverflow.com/questions/686220...ku-package | 20:45 | |
stevied | thanks, I'll check it out | ||
MasterDuke | m: my $f = FatRat.new(1, 3); for $f.^attributes -> $a { my $n = $a.name.substr(2); say "$a = {$f."$n"()}" if $f.^can($n) }Ā Ā Ā # @stevied this is sort of a hack job, but might get you started | 20:59 | |
camelia | $!numerator = 1 $!denominator = 3 |
||
MasterDuke | m: my $f = FatRat.new(1, 3); for $f.^attributes -> $a { my $n = $a.name.substr(2); say "$a = {$f.?"$n"()}" }Ā Ā Ā # or this perhaps | 21:00 | |
camelia | $!numerator = 1 $!denominator = 3 |
||
stevied | Thanks, yeah, I was able to figure it out from this post: perl6advent.wordpress.com/2015/12/...ospection/ | 21:33 | |
I did the same thing you did, looks like | |||
i'm surprised there isn't an easier way | |||
converting my crappy little module over to OO took 2 days for me to figure out. ugh. and it's probably garbage | 21:37 | ||
gfldex | m:``` | 21:53 | |
my $f = FatRat.new(1,3); | |||
my %h = $f.^attributes.map({ use nqp; .name => nqp::getattr(nqp::decont($f), $f.WHAT, .name) }); | |||
dd %h; | |||
``` | |||
@stevied#8273 There be dragons if you poke around in the private parts of objects. | |||
stevied | @gfldex#8222 well, for now, my goal is to just get something that works and learn OO in Raku | 22:10 | |
Yeuph | looks like comma is linked up to my compiler | 23:38 | |
states "Raku v2021.12" under File -> Project Structure -> Raku Compilers | 23:39 | ||
in C:\Program Files\Rakudo\bin | |||
This is helpful. Playing around now | 23:47 | ||
Still really wanna get Comma working | |||
ty tyu | |||
ty ty | |||
stevied | np | ||
Yeuph | Replit that is, in case that wasn't clear | 23:49 | |
stevied | right | ||
MasterDuke | shift+f10 and the run button work for me. you might want to try over in #cro, a bunch of the comma devs are there (though this is probably too late for them, you'll have better luck tomorrow) | 23:52 |