PEG.js
deploy_feedback
Our great sponsors
PEG.js | deploy_feedback | |
---|---|---|
8 | 55 | |
4,726 | 73 | |
0.0% | - | |
0.0 | 2.2 | |
over 2 years ago | about 1 year ago | |
JavaScript | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PEG.js
- Peg.js: Parser Generator for JavaScript
-
How do you start your own programming language?
Here's a javascript library that lets you generate your own language that compiles to Javascript. https://pegjs.org/ It's a compiler generator. You can either use the command line tool and feed it your grammar (You have to write that) and use the generated parser.js which can then run your program, or use peg.js as a dependency and generate your parser at run time before feeding it your program.
- My first Vue app - Subtitle offset editor
-
Deno in 2022
The library they're having trouble with is the most common parser generator in javascript, peg.js, which has about 80% of the market
-
UX mockups with TEXT (markdown)
Currently, I have only POC the grammar and language and parser are created using https://pegjs.org/
-
PEG Parsers: sometimes more appropriate than Regex
In past blog posts, where I've written about PEG, I've used Parsimonious in Python, such as three of my solutions to the 2020 Advent Of Code challenges (here, (here)[https://dev.to/meseta/advent-of-code-day-18-finally-using-peg-grammar-in-python-in-the-way-it-s-supposed-to-3253], and (here)[https://dev.to/meseta/advent-of-code-day-19-abusing-peg-grammar-in-python-the-way-it-s-not-supposed-to-2beg]). This time, because the rest of the website is javascript, I will be using PEG.js instead to avoid adding an extra programming language to the codebase.
-
Formal Logic Rules for a computer-assisted RPG
Update: I started writing a grammar for this language in PEG using PEG.js. This was super fun, I'll take a stab at an interpreter next, that should be much harder.
-
I'd like to ask you guys a question, how or in what way is a Programming Language made?
I was going to post the same thing. This really helped me understand the concepts better back in the day. They also have examples for some popular languages on their github: https://github.com/pegjs/pegjs/tree/master/examples
deploy_feedback
-
Show HN: Deno Subhosting is now self-service
Hey all, Andy from the Deno team here. We're excited to share with you Deno Subhosting, an easy way to extend your platforms functionality by securely running untrusted JavaScript written by your users.
When we first launched [Deno Deploy](https://deno.com/deploy) in 2021, we were surprised at the volume of requests from companies about getting access to the APIs needed to run Deno Deploy. Many companies wanted to give their users the ability to write custom logic in their app, but setting this up in the cloud presents security concerns and a ton of infra work/maintenance.
We realized that there was an opportunity for Subhosting to solve a larger problem, which is allowing companies to easily and securely run custom code written by their users, without the hassle of maintaining said infrastructure.
Though we do have a few subhosting customers (Netlify being one of them), this launch makes our Subhosting product self-service, so any development team interested in extending their platform via their users' custom code can do so by [signing up](http://dash.deno.com/subhosting/new_auto) and [reading our docs](https://docs.deno.com/deploy/manual/subhosting). We have [an updated pricing model for Subhosting](https://deno.com/deploy/pricing?subhosting) as well, including a generous free tier fit for kicking the tires and building a proof-of-concept.
We'd love to get your feed back. Have you ever talked to your co-workers about allowing external devs to "have at it" with your platform? What would it look like to unlock the final 10% for your top customers? How have you approached this problem in the past?
Thanks for reading and the Deno team will be responding to comments!
[Read the announcement blog post.](https://deno.com/blog/subhosting)
-
Run Bun Run! Building an AWS CDK Template with Bun
That means we donβt need to transpile the Typescript code to ESM or CJS. Currently, only Deno Deploy can run your Typescript function out of the box. However, in order to keep the code small, we still need some sort of bundling. Luckily, Bun is also a bundler π
-
Deno 1.36
What type of apps do you code for your day-job? (I program for fun and curiosity, so that is why I ask that lame question.)
Do you use node.js? Deno is brought in part by the Node.js creator, Ryan Dahl, who wanted to fix/improve a lot of things he didn't like in node.js.
They also have "Deno Deploy" (with a free tier) to run your code on different servers scattered throughout the globe: https://deno.com/deploy
One of the reasons I love the `deno` executable is you can use `import` statements in your code and then tell `deno` to merge everything into a single .js file. I would then take that and publish it to Cloudflare Workers. I know you can do this with node.js and a bunch of tools, but it is so much simpler with `deno`.
-
Moving Fast: A Retrospective on Trunk-based Development
The online version of DocTrack is hosted through Deno Deploy and is accessible here.
-
Supabase edge functions deploy to 35 regions!
It runs on https://deno.com/deploy which runs on gcp at the moment but my understanding is that the underlying cloud provider could change at any time.
-
Ask HN: Is Deno Ready for Prime Time?
For deployment Deno offers it's own service, Deno Deploy:
https://deno.com/deploy
Disclaimer: Haven't used it yet.
-
supabase edge functions
Deno functions. Its different than docker containers that auto scale. https://deno.com/deploy
-
Supabase Edge Runtime: Self-Hosted Deno Functions
One of the biggest annoyances with Deno deploy/functions is that there is no way to store any data. This would be very useful to e.g. cache an auth token, store a key/value pair, etc. See also: https://github.com/denoland/deploy_feedback/issues/110
Is any work being done to fix this? Or is this out of scope currently?
- Why we added package.json support to Deno
-
Using Solid Start with GitHub pages
One of the valuable features of Solid Start is that you can use so-called "adapters" to completely change the output into something deployable basically everywhere that serves pages and with quite a lot of options: there are adapters for amazon web services, cloudflare pages and workers, deno deploy, netlify, standard node server (the default), vercel, and static deployment - the latter allows us to build something that we can put on github pages.
What are some alternatives?
nearley - πππ² Simple, fast, powerful parser toolkit for JavaScript.
deno - A modern runtime for JavaScript and TypeScript.
peggy - Peggy: Parser generator for JavaScript
neon - Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, branching, and bottomless storage.
Jison - Bison in JavaScript.
miniflare - π₯ Fully-local simulator for Cloudflare Workers. For the latest version, see https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare.
js-yaml - JavaScript YAML parser and dumper. Very fast.
jose - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Chevrotain - Parser Building Toolkit for JavaScript
deno-lambda - A deno runtime for AWS Lambda. Deploy deno via docker, SAM, serverless, or bundle it yourself.
markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
blueboat - All-in-one, multi-tenant serverless JavaScript runtime.