Comments (4)
I've considered continuations before for Basil, primarily in the context of compile-time evaluation. I'm not sure I fully support arbitrary continuations at runtime - they're a bit tricky (can be hard to follow as a reader, and costly/complex to implement in native code esp. with concurrency). But I think it could be potentially interesting to support first-class continuations and environments somewhere down the line - it might be kind of difficult with the tree-walk style Basil's compile-time interpreter uses, but really the world is our oyster as far as compile-time features go.
Not super urgently worried about this though. I think we're content with a simple selection of structured control-flow features for the time being. I'm not concerned with safety to the point of worrying about statically-determining stack size, and at the moment I'm leaning a little more towards a message-passing model of concurrency.
Still super interesting to think about!
from basil.
and at the moment I'm leaning a little more towards a message-passing model of concurrency.
It's off-topic here, but I just want to say, that a highly constrained message-passing system can be made surprisingly efficient. The best I know is Weave which some would say is not really message passing but hey, they call it like that, so who cares. It's unbeliavably efficient per core and scales linearly in number of computational cores. It's all built around the extensive macro features of Nim.
Feel free to write about your thoughts regarding concurrency in Basil (probably in a separate issue) - I'll be more than happy to discuss it
from basil.
The other thing as it stands is that concurrency is a relatively low-priority feature for Basil. It complicates a tremendous number of things (notably, GC) and isn't critically necessary for Basil to function in certain environments. So it'll probably be some time before it is really considered for implementation, unfortunately.
from basil.
Take your time. Actually it sounds like you have some specific use cases for Basil in mind. Would you mind to write about it in more depth some time somewhere?
from basil.
Related Issues (20)
- Attributes/annotations HOT 1
- Escaped double quote lexes twice when next to start/end of string HOT 1
- Unable to lex escaped backslash in string literal HOT 1
- String formatting HOT 1
- Thoughts about a flexible yet compile-time turing complete language HOT 2
- Better pretty printing
- Control flow abstraction to avoid built-in exceptions, defer, multi-return, error handling, nil, etc. HOT 3
- Syntax sugar and other tricks for inspiration HOT 2
- XL lang with some similarities to Basil HOT 1
- Vaporization instead of reference counting to jump to the close-to-metal language battleground HOT 3
- Interpreted concatenative language ;) HOT 1
- Dreaming about end-user/programmer use-cases HOT 2
- Add floating-point primitives. HOT 4
- Add sub-64-bit integer types as primitives. HOT 1
- Add raw pointers and pointer types. HOT 3
- Tracing garbage collection. HOT 6
- Add garbage-collected references and reference types. HOT 7
- Forms versus macros HOT 1
- Killer app/lib/built-in-feature to make Basil stand out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basil.