Code Monkey home page Code Monkey logo

blaze's Introduction

blaze's People

Contributors

0atman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blaze's Issues

Discussion about testable documents

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/

Discuss code splicing

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;

  1. Leave markers in code to be replaced by the next code block
  2. In the next code block, target a specific point of syntax in previous code block to insert new code after/before

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);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.