Earlier quoted context omitted.
That's a bummer, because until then, you'll be strongly mis-representing Rust :/
I'm quite happy to take PRs from an expert to address the issues and represent Rust better. :-) UPDATE: I will point out that the README is pretty clear that this is rust 0.13. Doesn't mean it's a good representation of rust 0.13 either of course, but it clearly isn't based on a recent version of Rust.
Make a Lisp in Nim
21–30 of 48 posts
Re: Make a Lisp in Nim
#22Earlier quoted context omitted.
Yes, I updated it already.
Is the lua implementation very new and/or incomplete? It seems to be missing from the benchmarks, and if it's lua 5.1, maybe it'll work with luajit? [ed: Also interesting to note that the clojure version is much slower than scala/java. If nothing else, I guess it's an indication of performance gains that can be had by implementing parts of a clojure program in java (unless there's something off with the clojure imple…
Lua does seem to be an odd one in that the short tests run quickly but this does not translate into iterations for the longer 10 second test. Perhaps the mal implementation is triggering bad GC behavior or something and that drags down the longer running tests. That's just speculation though. Again, please take the numbers with a mountain size grain of salt.
Re: Make a Lisp in Nim
#23Earlier quoted context omitted.
I'm quite happy to take PRs from an expert to address the issues and represent Rust better. :-) UPDATE: I will point out that the README is pretty clear that this is rust 0.13. Doesn't mean it's a good representation of rust 0.13 either of course, but it clearly isn't based on a recent version of Rust.
Wait, you are being sarcastic, right? You know that you're replying to Steve Klabnik, who is on the Rust core team?
Re: Make a Lisp in Nim
#24Earlier quoted context omitted.
I'm quite happy to take PRs from an expert to address the issues and represent Rust better. :-) UPDATE: I will point out that the README is pretty clear that this is rust 0.13. Doesn't mean it's a good representation of rust 0.13 either of course, but it clearly isn't based on a recent version of Rust.
Wait, you are being sarcastic, right? You know that you're replying to Steve Klabnik, who is on the Rust core team?
Re: Make a Lisp in Nim
#25Earlier quoted context omitted.
Well, I'm not going to remove it. But I will see if I can find some time to improve it in the next few days. I've been meaning to cycle back around. Of course, fixes from somebody who's actually a Rust expert would have been preferred :-) The reason it still uses the alternate pcre is because this still hasn't been fixed: https://github.com/rust-lang/regex/issues/28 I would love to get rid of that nastiness.
That's a bummer, because until then, you'll be strongly mis-representing Rust :/
Re: Make a Lisp in Nim
#26Earlier quoted context omitted.
That's a bummer, because until then, you'll be strongly mis-representing Rust :/
I hope that you are mis-representing Rust. I'd be pretty discouraged if I was learning a new language and one of the first interactions I had with a notable community member was a notice of take-down containing neither encouragement nor constructive criticism.
For that matter: the constructive part was in the other post where he suggested some improvements. I can understand if the pull request is seen as aggressive, though.
Re: Make a Lisp in Nim
#27Earlier quoted context omitted.
That's a bummer, because until then, you'll be strongly mis-representing Rust :/
I hope that you are mis-representing Rust. I'd be pretty discouraged if I was learning a new language and one of the first interactions I had with a notable community member was a notice of take-down containing neither encouragement nor constructive criticism.
Have I mentioned how much I can't wait until 1.0.0 actually ships?
Re: Make a Lisp in Nim
#28I had this idea as well (after seeing Make a Lisp on HN). Anything that you found challenging in porting the Python version to Nim?
It wasn't a direct port of the Python one. Instead I mostly followed the guide and looked at the Python code when something was unclear to me. Nim being statically typed meant I had to create many MalTypes instead of just using the built in Python ones. But nothing particularly challenging.
Re: Make a Lisp in Nim
#29Earlier quoted context omitted.
Well, I'm not going to remove it. But I will see if I can find some time to improve it in the next few days. I've been meaning to cycle back around. Of course, fixes from somebody who's actually a Rust expert would have been preferred :-) The reason it still uses the alternate pcre is because this still hasn't been fixed: https://github.com/rust-lang/regex/issues/28 I would love to get rid of that nastiness.
That's a bummer, because until then, you'll be strongly mis-representing Rust :/
Apparently this will require more than half an hour of one person's time.
Or maybe it will take a week? Until then we only have this one representation for this case study, and it is a 100% valid representation of the reality of Rust development and Rust code. The fact that you tried and failed to update it is further demonstration of that.
But you know, deep down, its still going to be relatively slow and massively verbose.
Re: Make a Lisp in Nim
#30Earlier quoted context omitted.
That's a bummer, because until then, you'll be strongly mis-representing Rust :/
So get your Rust buddies together and fix it or rewrite it in the new apparently totally different Rust that has come out since October. Apparently this will require more than half an hour of one person's time. Or maybe it will take a week? Until then we only have this one representation for this case study, and it is a 100% valid representation of the reality of Rust development and Rust code. The fact that you trie…
Why do you think it will be slow?