Comments (3)
I've managed to figure out this much :-) from chalk.c but it's not clear why a new scripting language is required.
#define CHALK_USAGE \
"usage: chalk [options] [file] [arguments...]\n" \
"Chalk is a nifty scripting language. It's designed to be intuitive, \n" \
"small, and easily embeddable. Options are:\n" \
" --debug-gc -- Stress the garbage collector.\n" \
" --debug-compiler -- Print the compiled bytecode.\n" \
" --help -- Show this help text and exit.\n" \
" --version -- Print the application version information and exit.\n"
from os.
Chalk is a new scripting language that I wrote for Minoca OS. Like the comment above says, I wanted something that was small, embeddable, had a familiar syntax. I was also designing it with the eye of potentially taking it into kernel mode some day, though as of today I don't have a need for that. What I did need is a basic description language for the msetup recipes and upcoming build system.
I realize there are other scripting languages that fit my criteria, but in the interest of not dragging in unknown dependencies I decided to just create a small one on my own.
I'll mention here that Chalk is actually in transition right now, as it took me two attempts to write it. The files in apps/lib/chalk are the old chalk interpreter which will be deleted soon. The Chalk interpreter that you found in apps/ck is the new interpreter going forward.
The .ck files sprinkled around everywhere are part of a build engine I'm creating with Chalk called mingen. The goal is to switch from Makefiles to Ninja, with mingen being the front end that creates Ninja files.
I just finished porting msetup to use the new Chalk interpreter, but mingen and all the .ck files are still on the old interpreter, which has incompatible syntax (mostly the fact that in the new interpreter you need to declare variables with var, where you could just start using them in the old interpreter).
So there's the rundown on Chalk.
from os.
I'm going to to ahead and close this one now. Feel free to email me if you've got more questions.
from os.
Related Issues (20)
- error.. HOT 5
- Need chgrp or equivalent HOT 3
- Add awk to the default Minoca build HOT 2
- Use LGPL v2.1 instead of v3 HOT 4
- mac toolchain problems HOT 3
- RPI1 image on website has private IP address in the 'opkg.conf' file. HOT 3
- Want to testing Minoca on mac directly using qemu HOT 5
- BopEfiGetDebugDevice in dbgser.c doesn't iterate through the list of handles. HOT 1
- Udoo (iMX6 Dual/Quad) support? HOT 1
- Alignment build error on Debian HOT 2
- Chalk missing HOT 2
- Is this based on reverse engineering of Windows? HOT 1
- Minoca Debugger HOT 1
- [Deleted]
- The opkg program doesn't run. HOT 5
- Linking - testmm: Fails HOT 2
- Assertion Failure: KernelUsage->HardPageFaults <= KernelUsage->PageFaults HOT 3
- An improper locking bug on the lock NewThread->StartMutex HOT 4
- Your website is down. HOT 1
- A
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 os.