Code Monkey home page Code Monkey logo

jshp's Introduction

JSHP

What Is This?

Memory efficient 🎢, fast ⚡, and easy to use Node.js hypertext preprocessor, like PHP but better™.

Memory Efficient

It's written in Rust, so it's memory efficient by default.
It definitely does not store entire files in memory.
And even if it did, how much RAM do you have? How much RAM does your cloud have? Right, I thought so.
Look, reading from disk is slow, and reading from memory is fast and everyone wants fast.

How To Use It?

Installation

Benchmarks

TODO:

Base Functionality

  • Parsing code from jshp tags
  • HTTP serving
  • Tag parsing
    • Implement better parsing errors (unclosed tag, missing closing tag, etc.)
    • Finish echo tag <?= ... ?>
  • Implement CLI
  • Implement check_syntax flag - checking the syntax of code fragments

Big If True

  • Typescript support ?
  • node_modules support / require() support ??
  • wasm ???

Misc

  • Readme needs more emojis
  • Colored status output for startup checks/warnings/errors
  • Add a LICENSE file
  • Benchmarking

But... Why?

Learning experience.

It might not look like much but this is the best first project in any language, see:

  • It's made of multiple primitive parts that are rather easy to implement
  • Simple syntax parsing, simple file IO stuff, almost simple HTTP serving, ignore the V8 stuff (originally it should use Node.js directly, but embedding V8 means faster, and everyone wants faster)

jshp's People

Contributors

wereii avatar tate-san avatar

Watchers

 avatar

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.