refaktor / rye Goto Github PK
View Code? Open in Web Editor NEWhomoiconic dynamic programming language with some new ideas
Home Page: https://ryelang.org
License: Apache License 2.0
homoiconic dynamic programming language with some new ideas
Home Page: https://ryelang.org
License: Apache License 2.0
I liked the language, and I used to want to create something similar myself. But my eyes suffered incredibly while I looked at the site.
Firefox 123
But in the docs it looks ok:
Well, except that all the content is on the left and it’s not convenient to read on my 27-inch screen. It would be nice to center it like GitHub does, for example, or any other modern site.
In the examples you have a solution to the first Project Euler problem, as follows:
; # Project Euler: problem 1
; sum all factors of 3 and 5 smaller than 1000
range 0 1000
|filter { :x all { x .factor-of 3 x .factor-of 5 } }
|sum .print
; result 33165
The actual problem is to sum the multiples (not factors) of 3 and 5. 3 has only two factors, 3 and 1, and 5 has only two factors, 5 and 1. Per your result you do seem to be summing the multiples of 3 and 5, so I conclude that your .factor-of function is confusingly misnamed.
Please accept this in the spirit in which it is offered. I think ryelang looks really promising. I wish you all success. I am not a language developer so I can't help with that, but I hope that clearing up the example might be a step in the right direction.
On this page: https://ryelang.org/meet_rye/basics/assignment/
I see this text:
Again we haven’t looked at op-words yet, but effect of + is probably understandable.
meaning: 24 + 81
print meaning
; prints: 42
Unfortunately, I am totally confused; I cannot see how 24 + 81 evaluates to 42. What am I missing here?
I hate js and the entire modern web in general. Therefore, I am interested in various alternatives that somehow improve the situation. HTMX is my favorite right now. But recently I came across this interesting concept:
https://bvisness.me/luax/
I really liked the idea of mixing tags this way. I'm wondering if it is possible to implement such a dialect/DSL? Just a theoretical question.
If possible, what about support in the code editor? Will there be support for user-defined DSLs or is this impossible to implement without a type system?
Operators with same mathematical priority seem to be evaluated from the right:
×> 1.0 / 10.0 * 100.0
[Decimal: 0.001000]
×> 1.0 / 10.0 / 100.0
[Decimal: 10.000000]
Either this should be clearly documented or fixed or prevented.
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.