0atman / blaze Goto Github PK
View Code? Open in Web Editor NEWπ₯ Blaze allows language-agnostic literate-style programming
Home Page: http://blaze.oat.sh
License: MIT License
π₯ Blaze allows language-agnostic literate-style programming
Home Page: http://blaze.oat.sh
License: MIT License
This prevents the upgrade from working, and also the command-line based installation.
Hi, Youtube suggested me your older video about literate programming. (The blogpost link in the description doesn't work anymore, btw)
I was wondering if you considered implementing something alike code splicing?
Now, splicing can happen in two ways;
Both approaches come with challenges; what to splice into, where to splice into
And, of course, how to do this in a minimalistic way. Preferable programming language agnostic?
Do you happen to have thought about another approach? Thoughts about more/different challenges?
Below I wrote naΓ―ve examples, those still need a lot of thought about syntax, comment-syntax compatibility, type-safety, splice scope, single-or multiple replacements, should the tool be language agnostic working as a text tool or syntax/semantic model aware...
I feel like with the Rust compiler for type inference, LSP for easing on pesky syntax requirements, and the current level of care for error messages, we are at a point in time where literate programming could be elevated to a next level.
EDIT; Also, we now have solid syntax parsers that support multiple programming languages at once.
Example, approach 1, see below. Note that the square brackets are for demonstration purposes and not part of the literate document;
[Descriptive text]
... We iterate over our list of numbers, and print them in the end
[Code]
let numbers = [-1,5,8];
for number in numbers.into_iter()<!-- Process numbers --!> {
println!{"{:?}, number);
}
[Descriptive text]
... And for that reason we need the natural square root of these numbers
[Code]
<!-- include -->
use std::f64;
<!-- include -->
<!-- START Process numbers --!>
.filter(|n| *n > 0)
.map(|n| (*n as f64).sqrt())
<!-- END Process numbers --!>
[Code result]
use std::f64;
let numbers = [-1,5,8];
for number in numbers.into_iter()
.filter(|n| *n > 0)
.map(|n| (*n as f64).sqrt())
{
println!{"{:?}, number);
}
Example, approach 2, see below. Note that the square brackets are for demonstration purposes and not part of the literate document;
[Descriptive text]
... We iterate over our list of numbers, and print them in the end
[Code]
let numbers = [-1,5,8];
for number in numbers.into_iter() {
println!{"{:?}, number);
}
[Descriptive text]
... And for that reason we need the natural square root of these numbers
[Code]
<!-- @after include -->
use std::f64;
<!-- @after include -->
<!-- @after fn_call into_iter--!>
.filter(|n| *n > 0)
.map(|n| (*n as f64).sqrt())
<!-- @after fn_call into_iter --!>
[Code result]
use std::f64;
let numbers = [-1,5,8];
for number in numbers.into_iter()
.filter(|n| *n > 0)
.map(|n| (*n as f64).sqrt())
{
println!{"{:?}, number);
}
Hi @tristram found your youtube video introducing blaze.
We actually have a GUI demo that can achieve testable documentations. I found youtube kept blocking my comments so I have to reach you here. Feel free to delete this issue if it feels intrusive.
And we are kinda yearning for feedback right now. Would love to have a discussion on the potential of such tools with you!
https://www.reddit.com/r/SideProject/comments/1666ond/hello_hackers_advice_for_this_product/
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.