Better HN
topnewbestaskshowjobs
Log inSign up

webpro

128 karma · joined May 25, 2013 (13y ago) · 38 submissions

Submissions

comment 1y ago · link · parent

Some of the issues mentioned in this thread have been improved, including private CSI sequences, default param values, and cancellation + substitution.

comment 1y ago · link · parent

The lexer and parser handled it perfectly first try. The HTML renderer had a few issues though, but it's being rendered reasonably well now. The torture test has been added to the package tests and to the website as an example.

comment 1y ago · link · parent

There is some recovery in the lexer, but would love to learn what would make it crash! The url you provide gives a 404.

comment 1y ago · link · parent

Raw input should be cool now (there's "raw" in the examples as well)

comment 1y ago · link · parent

What would prevent you from starting? Could be fun :)

comment 1y ago · link · parent

Emojis and other unicode characters may or may not be rendered as a single-width character. I've been splitting hairs and strings.

The tool currently counts any unicode character as a single-width one.

comment 1y ago · link · parent

Thanks, this is great feedback. I'll see what I can do, stay tuned.

comment 1y ago · link · parent

There is https://github.com/webpro/ANSI.tools/blob/main/packages/pars... and others

comment 1y ago · link · parent

Thanks. Agreed. The way I see it, ignore the noise and there might be something in there.

comment 1y ago · link · parent

That's some interesting feedback, thanks for sharing. I'll see what I can extract and apply from it. Please bear with me, this is only my initial take on the whole concept (and as you point out, it isn't that trivial). Didn't have much examples to be inspired by, but we're on our way anyway.

comment 1y ago · link · parent

Thanks! It's all open source (including the tokenizer/parser), so feel free come collaborate on GitHub.

comment 1y ago · link · parent

The parser has, but not the HTML renderer indeed. Using a third-party lib for that currently, but noticed the limitations too. Might replace it with my own!

comment 1y ago · link · parent

Thanks for sharing, haven't seen that one yet. Will see if I can borrow ideas from it.

comment 1y ago · link · parent

At least I tried to make it look like a 1993 website

comment 1y ago · link · parent

Got to start somewhere! Didn't see many examples to get inspired by either. Here's the full table: https://ansi.tools/lookup. This is my initial take on it. Please bring in the corneriest cases! It's open source so bug reports, RFCs and pull requests are most welcome.

comment 1y ago · link · parent

Working with and debugging ANSI control codes and escape sequences can be a challenge.

This free web-based tool helps to inspect the input, visualize colors and styling, and list control codes. By using a proper tokenizer and parser (not just regex hacks), it supports all sorts of control codes. The parser is open source and available too (find links in "about").

Type or paste text in the black text area, or try out the examples. Use the lookup table to filter & find specific codes.

Feedback welcome, I’d love to know what’s confusing, missing, or especially useful.

17.

Inspect ANSI control codes and escape sequences(ansi.tools ↗)

115 points · by webpro · 1y ago · 51 comments

comment 2y ago · link · parent

Benchmarking becomes more important as we build more and more applications and tooling for runtimes like Node.js and Bun. This article discusses macro and micro benchmarking, and explores options we can use today to benchmark code. The article includes code examples and a CodeSandbox to try and implement in your own work.

19.

The State of Benchmarking in Node.js(webpro.nl ↗)

1 points · by webpro · 2y ago · 1 comment

comment 4y ago · link · parent

Exportman is another fresh take on keeping your TypeScript projects clean & tidy.

21.

Find unused files and exports in your TypeScript project(npmjs.com ↗)

1 points · by webpro · 4y ago · 1 comment

22.

Updated overview of the best live DJ streams(edmstreams.live ↗)

1 points · by webpro · 6y ago · discuss

23.

Introducing the terminal for developers(medium.com ↗)

1 points · by webpro · 9y ago · discuss

24.

Component Styleguide – Simple styleguide framework(github.com ↗)

1 points · by webpro · 11y ago · discuss

25.

Getting started with dotfiles(medium.com ↗)

2 points · by webpro · 12y ago · discuss

26.

Getting gulpy: Advanced tips for using gulp.js(medium.com ↗)

1 points · by webpro · 12y ago · discuss

27.

Managing complexity in today's web culture(medium.com ↗)

2 points · by webpro · 13y ago · discuss

28.

JQuery Evergreen(webpro.github.io ↗)

1 points · by webpro · 13y ago · discuss

29.

Automated unit & functional testing for web applications(github.com ↗)

1 points · by webpro · 13y ago · discuss

12