sampersand / qutie_rust Goto Github PK
View Code? Open in Web Editor NEWQutie in rust
Qutie in rust
it's more of a misnomer now
There are a lot of slow things
Why is there a distinction between get
and qt_get
?
if and
is an operator, and_b
will be effectively and(_b)
, not the symbol and_b
`
)'
)"
)this doesn't work:
foo = {
// }
};
as it cant tell what a comment is or isnt in the middle of the universe
it was using String
because &str
required lifetimes, which didn't work with macros
look at the ruby version of qt for this
QT already exists: https://en.wikipedia.org/wiki/Qt_(software)
Rename to Ellby (LB for short)
(this will require renaming all the qt_FUNCTION_NAME
s to lb_FUNCTION_NAME
Currently, i32
is the datatype that's being used. I wanna change it to f64
or something, so there's one unified data type
Right now, the auto functions are unstable
a 1= 2
will be rejected and re-fed as a1= 2
, which isn't the original code
it currently just uses 1 as a hashcode for everything
if not
is an operator, not_true
will be interpreted as not(_true)
ie:
/* constants */
let sigil_sym = rc_obj!(SYM; "sigil");
let rhs_sym = rc_obj!(SYM; "rhs");
let lhs_sym = rc_obj!(SYM; "lhs");
let prior_sym = rc_obj!(SYM; "priority");
let func_sym = rc_obj!(SYM; "func");
they should all be constants, but rc_obj!
uses Rc::new
which isn't allowed for const or static
car.wheels
will do car?.wheels?
While loop is awful. look at this:
loop {
match cond.clone().qt_exec(env){
Ok(obj) => match obj.qt_get(rc_obj!(NUM; 0), AccessType::Stack, env) {
Ok(obj) => if to_type!(BOOL; obj, env) {
cast_as!(body, Universe).clone().exec(env);
} else {
break
},
Err(err) => panic!("While condition returned error: {:?}", err)
},
Err(err) => panic!("Howto error?: {:?}", err)
}
}
this:
foo?.c = 1 + 2;
behaves like this:
foo?.c = 1, + 2;
replace all instances with peek
replace this:
let false_arg = get_arg!(args, env, false_s_sym; Stack,
get_arg!(args, env, false_l_sym; Locals, rc!(boolean::NULL)));
with this:
let false_arg = get_arg!(args, env, false_s_sym; Stack => false_l_sym; Locals => rc!(boolean::NULL));
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.