Better HN
topnewbestaskshowjobs
Log inSign up

justsml

8 karma · joined Jul 1, 2017 (9y ago) · 17 submissions

️<3 OSS, I share software dev know-how & contribute to the projects I rely on (and admire) most: @nodejs, @lodash @mongodb, @docker, @minio @bluebird, et al.
Submissions

1.

LLM benchmarks are answering someone else's question(danlevy.net ↗)

5 points · by justsml · 5mo ago · discuss

comment 9mo ago · link · parent

Today I found myself copying 9+ keys and values between various UI & ENV configs simply to change between Sonnet on Anthropic vs Bedrock.

Switching LLM models, providers and options should be easy.

> Was it max_tokens? Or max_output_tokens? top_p? topP? Or top_k?

disc: author share.

3.

Would you use LLM:// connection URLs?(danlevy.net ↗)

1 points · by justsml · 9mo ago · 1 comment

4.

I built a tool to convert JSON/CSV input data into type-aware code SQL, TS, etc.(dataanalyzer.app ↗)

2 points · by justsml · 5y ago · discuss

5.

JavaScript Quiz: 14 Date Time Questions in JavaScript – Prove Your Knowledge(danlevy.net ↗)

2 points · by justsml · 6y ago · discuss

6.

How well do you know JavaScript Promises? Find out in 9 Questions(danlevy.net ↗)

4 points · by justsml · 6y ago · discuss

comment 7y ago · link · parent

AaaS: a NodeJS & Sharp streaming image resizing project.

8.

Adorbs-as-a-Service: Random Kitten Photos in Under 1ms(github.com ↗)

1 points · by justsml · 7y ago · 1 comment

9.

Visualizing Promise.all in JavaScript(danlevy.net ↗)

2 points · by justsml · 7y ago · discuss

10.

Protecting Your Tokens, API Keys and Secrets(danlevy.net ↗)

4 points · by justsml · 7y ago · discuss

comment 7y ago · link · parent

Fetch API examples included.

12.

You may not need Axios(danlevy.net ↗)

3 points · by justsml · 7y ago · 1 comment

13.

'Functional Promise' JavaScript Lib Powers Clean Async+Sync(fpromises.io ↗)

2 points · by justsml · 8y ago · discuss

comment 9y ago · link · parent

Slack and Spotify lack critical optimizations. They appear to leak long term objects like crazy.

This isn't Electron's fault. I have plenty Java apps just as guilty.

I do wish Slack was a better case for Electron. JavaScript isn't immune from leaky bad patterns, just the same as other langs/environments.

comment 9y ago · link · parent

Promises are one of those features misunderstood for 2 reasons. Several leading initial library implementations were broken from day 1, and couldn't/wouldn't later introduce breaking changes to existing users.

Another factor dragging down the impression of Promises: Google search seems to love returning 5+ year old articles. They almost universally suck. Even the stuff I wrote back then was awful.

New articles are not necessarily spared, they often suffer from a number of issues: Overly Simplistic examples, fragile function boundaries, leaky variables, arbitrary 'design.'

I just updated my write-up on avoiding Promise anti-patterns: https://github.com/justsml/escape-from-callback-mountain/wik...

The main project's README shows how to rock modern Promises: https://github.com/justsml/escape-from-callback-mountain/

16.

Escape from Callback Mountain: Functional JavaScript 2017(github.com ↗)

2 points · by justsml · 9y ago · discuss