Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Marco Concetto Rudilosso
@Maaarcocr
@maximecb the new ones. But it seems like it's @global_obj that gets collected
Maxime Chevalier-Boisvert
@maximecb
@Maaarcocr Need to confirm that it's the new one, and find out when it gets collected. Is it during the call to setField?
Marco Concetto Rudilosso
@Maaarcocr
Yes it's the call for setField. I'll push my most recent code as soon as I can
Marco Concetto Rudilosso
@Maaarcocr
@/all yesterday I didn't work on the GC and neither I will today. I had one interview today and I'll have another one tomorrow, I'm trying to not focus too much on stuff to be chill during them
Maxime Chevalier-Boisvert
@maximecb
@Maaarcocr no worries. Best of luck on your interviews, I hope you score an internship you enjoy :)
Marco Concetto Rudilosso
@Maaarcocr
Hopefully! :smile: today I had Bloomberg, which I'm not 100% sure about, but they still do very cool stuff with their data (and also buckelscript, but afaik the team who made is not london based). Tomorrow I have Microsoft, let's see what they say! :)
Marco Concetto Rudilosso
@Maaarcocr

Just solved this :smile:

string used by imgrefs gets collected.

now the only thing that it's still breaking is thesetField caused bug
Maxime Chevalier-Boisvert
@maximecb
Awesome
We’re making progress! :)
If we go to PolyConf or another conf next year we will have a lot to show
Marco Concetto Rudilosso
@Maaarcocr
Yes! I ended up submitting a talk to StarCon (a student conference in Waterloo) about my experience developing the GC :smile: it's going to be a very short talk, but it's my first try. I'll know if I get accepted by the end of October!
Maxime Chevalier-Boisvert
@maximecb
Sweet. Hope you get in :)
Molly Everett
@mollymorphic
@Maaarcocr sweet, good luck! (^_^)
Tobe Osakwe
@thosakwe
Just whipped a ZetaVM code generator in Dart. Hopefully this can bring in some new users: https://github.com/thosakwe/zeta/blob/master/example/hello.dart
Maxime Chevalier-Boisvert
@maximecb
@thosakwe Pretty cool. Any plans for it?
Tobe Osakwe
@thosakwe
@maximecb Nothing too specific, but likely a language or two.
Also, just want to say, fantastic work on ZetaVM. I've been following it for a while. If you ever need any PR's sent it I'm more than happy
Marco Concetto Rudilosso
@Maaarcocr
So, I've pushed my most recent changes to github about the GC. The problem I'm facing right now is that while going through the linkedlist of "live" values it just crashes. I'm trying to understand if this is due collecting something that we should or the linkedlist being broken and keeping a reference to something that does not exist anymore. I have tried assigning a freed pointer to a value and then going through the linkedlist but this doesn't make it crash, so I guess it's the latter option that it the most probable one.
One interesting fact is that on Valgrind all the errors that are showed by running memcheck on it related to memory allocated due to setField. This is also proved by the fact that if I increase extremely MIN_CAPfor Objects things do not crash.
Marco Concetto Rudilosso
@Maaarcocr
Okay I just realized my last message may not make sense. Valgrind (using memcheck) shows that all the errors comes from memory allocated due to the setField method. This is proved by the fact that if I increase the MIN_CAP field in the Object class, then, the tests do not crash.
Maxime Chevalier-Boisvert
@maximecb
@thosakwe Thanks Tobe. There are a few issues that could use help on GitHub. Suggestions welcome too :)
@Marco I guess something isn't handled correctly when objects get extended. Gotta figure out why this is. Could be useful to know exactly when it crashes.
Molly Everett
@mollymorphic
not strictly zeta-related but this paper looks interesting: https://www.cs.purdue.edu/homes/rompf/papers/amin-popl18.pdf
noundlas
@noundlas
Heyy Guys.. If I am not disturbing... Trying to get in touch with ZetaVM finally... I was looking through the mail communication from past 5 months.. Its good development what it was then and now... If I am not missing anything in the steps and to configure and install... I see core dumps when I tried to run zeta binary.

(gdb) r --test
Breakpoint 2, testRuntime () at vm/runtime.cpp:763
763 {
(gdb)
764 std::cout << "runtime tests" << std::endl;
(gdb)
764 std::cout << "runtime tests" << std::endl;
(gdb)
runtime tests
789 assert (arr.getElem(0) == Value::ZERO);
(gdb)
792 auto arr2 = Array(0);
(gdb)
793 assert (arr2.length() == 0);
(gdb)
794 arr2.push(Value::ONE);
(gdb)
zeta: vm/runtime.cpp:120: uint8_t* Wrapper::getNextPtr(refptr, refptr): Assertion `nextPtr != nullptr' failed.

Program received signal SIGABRT, Aborted.
0xb7fdd428 in __kernel_vsyscall ()
(gdb) p Value::ONE
$1 = {word = {float32 = 1.40129846e-45, int64 = 1, int32 = 1, int8 = 1 '\001', ptr = 0x1 <error: Cannot access memory at address 0x1>},
tag = 2 '\002', static ZERO = {word = {float32 = 0, int64 = 0, int32 = 0, int8 = 0 '\000', ptr = 0x0}, tag = 2 '\002',
Can you please help me check If I miss anything

Maxime Chevalier-Boisvert
@maximecb

@noundlas Can you open an issue on GitHub?

Would like to know what kind of machine you're running this on (Windows, Mac, Linux). What compiler you used to compile Zeta (gcc, clang, which version?)

I'm assuming the error just happens when you run make test ?
noundlas
@noundlas
yes @maximecb I am seeing the assertion when I run make test (./zeta --test)... Opened an issue on GitHub #116
Maxime Chevalier-Boisvert
@maximecb
Thank you for opening an issue and taking the time to look through this :)
Marco Concetto Rudilosso
@Maaarcocr
Hey all! I'm sorry for my absence, I've been quite busy with interviews and uni :( my free time is not too much in this period, I'll try my best to push a bit more onto the GC whenever I can!
Maxime Chevalier-Boisvert
@maximecb
@Maaarcocr No worries. Also pretty busy with work/travel.
Marco Concetto Rudilosso
@Maaarcocr
@maximecb I hope you enjoy your trip! Where in Europe are you? (Just curious :) )
Maxime Chevalier-Boisvert
@maximecb
In Amsterdam :)
Maxime Chevalier-Boisvert
@maximecb
@krypt-n Hey kryptn, are you around? Any chance you can get that pull request working? :O
mfunk
@krypt-n
I'll see what I can do. I can try to find some time and motivation this weekend
Maxime Chevalier-Boisvert
@maximecb
Yes :D
Marco Concetto Rudilosso
@Maaarcocr
trying to debug the gc this weekend :smile:
Maxime Chevalier-Boisvert
@maximecb
Oh yeah :D
Maxime Chevalier-Boisvert
@maximecb
@ivoyankulovski the Plush language implements prototypal inheritance
noundlas
@noundlas
Back in town... Let me know if I help in any feature
Maxime Chevalier-Boisvert
@maximecb
@noundlas There are a few open PRs that could use help if you want.
Brian Tiffin
@btiffin
Hello, just bumped into ZetaVM. Are there plans for embedding, from C in particular? I just tweaked the makefile as a trial, and exposed an embed_zeta entry point as an extern "C" function. Then created a small DSO that links all the objects (trial renamed main to zmain in main.cpp along with the embed_zeta function). Just compiled a small C program with main that passes on to embed_zeta which kicks zmain. Worked out ok; as a quick hack. That means a few more minutes work and ZetaVM could be running inside GnuCOBOL as a dynamic library. Is this something that ZetaVM would be up for supporting? Only 12 minutes in so far, so not sure about all the implications, but the C program can run all the examples I've tried so far, including --with-sdl2 graphics. An actual embedding API would require a little bit more refactoring to separate out the assumptions around who is charge of main, but this looked very promising.
Maxime Chevalier-Boisvert
@maximecb
@btiffin Hi Brian. Unfortunately Zeta hasn't been maintained. My full-time job has been taking most of my time lately. You're welcome to fork the repository and embed it into your projects, or submit small pull-requests.
Brian Tiffin
@btiffin

repeat message: I must have not properly finished the first time.

Thanks for the quick response, Maxime (which sounded better back on Sunday). I just might try for a patch and PR, but your frank answer puts pause to that, I guess. Sad to hear that ZetaVM is on break. My initial 5 minute tour of ZetaVm felt very impressive, nice work. I hope you find time to pick this up again. Will keep an eye out.

Have good, make well

Alex Syrotenko
@Fly-Style
Hi, folks!
I found this project and want to make some contributions,
Does anyone provide reviews for pull-requests?
Maxime Chevalier-Boisvert
@maximecb
Hi @Fly-Style, this project is currently unmaintained to be honest, but if you submit PRs I will review them
Alex Syrotenko
@Fly-Style
@maximecb hi, Maxime.
Thank you for the responce, I am interested in any runtime improvements.
I see that someone started GC implementation, and I'd like to improve it.
Maxime Chevalier-Boisvert
@maximecb
@Fly-Style sure, that’s certainly possible. Let’s discuss on the GitHub issue.