cesquivias / mumbler Goto Github PK
View Code? Open in Web Editor NEWMy experimental programming language using Truffle
License: GNU General Public License v3.0
My experimental programming language using Truffle
License: GNU General Public License v3.0
I know repl execute mode create new context every time.
After I change to something put MumblerContext context = new MumblerContext();
outside while
and pass the global Namespace
However it still can not save global symbol.
➫ (define x 1)
FrameDescriptor@5fdef03a{0:println, 1:+, 2:-, 3:*, 4:/, 5:%, 6:=, 7:<, 8:>, 9:list, 10:cons, 11:cons?, 12:pair?, 13:car, 14:cdr, 15:now, 16:read, 17:sleep}
#'x
x
define settint 1[18,x,Long]FrameDescriptor@5fdef03a{0:println, 1:+, 2:-, 3:*, 4:/, 5:%, 6:=, 7:<, 8:>, 9:list, 10:cons, 11:cons?, 12:pair?, 13:car, 14:cdr, 15:now, 16:read, 17:sleep, 18:x}
define after settint 1[18,x,Long]org.graalvm.compiler.truffle.runtime.FrameWithoutBoxing@26ba2a481
1
1
➫ x
FrameDescriptor@5fdef03a{0:println, 1:+, 2:-, 3:*, 4:/, 5:%, 6:=, 7:<, 8:>, 9:list, 10:cons, 11:cons?, 12:pair?, 13:car, 14:cdr, 15:now, 16:read, 17:sleep, 18:x}
globalSymbol 1 [18,x,Long]globalFrameorg.graalvm.compiler.truffle.runtime.FrameWithoutBoxing@783e6358
null
null
How can repl get the right value for x
?
The benchmark/measure script doesn't calculate the times for the TruffleMumbler implementation. Add it so it's easier to compare with the other languages/implementations.
Hello Cesquivias,
Am trying to compile the source code, following files are missing , if possible please add them.
Regards
Raj
import mumbler.truffle.node.builtin.arithmetic.AddBuiltinNodeFactory;
import mumbler.truffle.node.builtin.arithmetic.DivBuiltinNodeFactory;
import mumbler.truffle.node.builtin.arithmetic.ModBuiltinNodeFactory;
import mumbler.truffle.node.builtin.arithmetic.MulBuiltinNodeFactory;
import mumbler.truffle.node.builtin.arithmetic.SubBuiltinNodeFactory;
import mumbler.truffle.node.builtin.io.NowBuiltinNodeFactory;
import mumbler.truffle.node.builtin.io.PrintlnBuiltinNodeFactory;
import mumbler.truffle.node.builtin.io.SleepBuiltinNodeFactory;
import mumbler.truffle.node.builtin.lang.ReadBuiltinNodeFactory;
import mumbler.truffle.node.builtin.list.CarBuiltinNodeFactory;
import mumbler.truffle.node.builtin.list.CdrBuiltinNodeFactory;
import mumbler.truffle.node.builtin.list.ConsBuiltinNodeFactory;
import mumbler.truffle.node.builtin.list.ListBuiltinNodeFactory;
import mumbler.truffle.node.builtin.relational.EqualBuiltinNodeFactory;
import mumbler.truffle.node.builtin.relational.GreaterThanBuiltinNodeFactory;
import mumbler.truffle.node.builtin.relational.LessThanBuiltinNodeFactory;
import mumbler.truffle.MumblerTypesGen;
import mumbler.truffle.node.special.DefineNodeGen;
import mumbler.truffle.node.read.ClosureSymbolNodeGen;
import mumbler.truffle.node.read.GlobalSymbolNodeGen;
import mumbler.truffle.node.read.LocalSymbolNodeGen;
import mumbler.truffle.node.special.DefineNodeGen;
import mumbler.truffle.node.special.LambdaNodeGen;
import mumbler.truffle.node.special.QuoteNodeGen;
Use Truffle to implement tail recursion
I see there are still a couple places where the language is still named Truffler
, most notably in graal/
, simple/repl
, benchmark/measure
and the instance in the README which is fixed by #1. It would be nice to fix those as well so there is no possible confusion.
For the pathnames, I found benchmark/fibonacci/fibonacci.truffler
and graal/src/truffler
.
In the blog post, under the if
subsection the language is named "Truffle".
It is nice to see such a detailed experiment, keep up the good work!
AFAICT, scopeSet
isn't set in LambdaNode
once you take the slow path, so you keep taking the slow path forever.
After breaking tail call elimination there should be a battery of tests to verify that no language features regress.
Along with literal strings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.