Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dsherret
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
dsherret
4mo ago
One shotting slop is very different from iterating back and forth with an AI. Also, most of the AI work that's being done has been getting node compatibility tests passing with the help of comparing that to the Node.js code, which is s
2.
▲
by
dsherret
8mo ago
The benefit is you can easily scale the complexity of the file. An .sh file is great for simple commands, but with a .ts file with Deno you can pull in a complex dependency with one line and write logic more succinctly.
3.
▲
First-class JSONC manipulation in JavaScript
(david.deno.dev)
1 points
by
dsherret
11mo ago
|
0 comments
4.
▲
First-class JSONC manipulation in Rust
(david.deno.dev)
2 points
by
dsherret
2y ago
|
0 comments
5.
▲
by
dsherret
3y ago
To be clear for people reading wondering what this is about, this is only a hard recommendation for the public API types. The reason for it, is by adding explicit types to the boundary of your package, the package becomes way faster for use
6.
▲
by
dsherret
3y ago
It's being renamed to a no-slow-types lint rule that occurs on publish and in deno lint. Essentially it enforces that the types of the public API can be determined without inference. This enables a few things: 1. Type checking ts sourc
7.
▲
by
dsherret
3y ago
In Deno with JSR, only the public API gets used for type checking because publishing enforces that the public API can be determined without type inference. So it's similar to declaration files (d.ts files) and you wouldn't see err
8.
▲
Dax – Cross-platform shell for Node.js
(david.deno.dev)
73 points
by
dsherret
3y ago
|
25 comments
9.
▲
by
dsherret
3y ago
For Deno there is https://github.com/dsherret/dax which is also zx inspired and has a cross platform shell built-in.
10.
▲
by
dsherret
3y ago
You can already mostly do this with dprint's TypeScript plugin if you tweak the config (and I'm open to adding more config to support this scenario in case something is missing). For example, the TypeScript team uses a line limit
11.
▲
by
dsherret
3y ago
> Tying a language runtime to a specific KV interface which is tied to a specific hosted service is the opposite of forward thinking. This is not the case. The Deno runtime itself is not tied to the Deno Deploy hosting service. The KV fe
12.
▲
by
dsherret
4y ago
Seems like there's one here: https://github.com/benfoxall/lastfm-to-csv
13.
▲
by
dsherret
4y ago
The `deno cache` command (ex. `deno cache main.ts` or `deno cache --node-modules-dir main.ts` if you want a node_modules folder) will ensure all npm packages used in the provided module are cached ahead of time. It acts similarly to a `npm
14.
▲
by
dsherret
4y ago
No, the --node-modules-dir flag doesn't create a symlink to the home directory cache. It creates a copy in the node_modules folder (in the future it will use hardlinks to reduce space, there is an open issue). It's stored at node_
15.
▲
by
dsherret
4y ago
Node API will be supported sometime soon https://github.com/denoland/deno/pull/13633
16.
▲
by
dsherret
4y ago
We'll have custom registry support. For local npm packages, that would be nice to have, but probably something that will be implemented later. It could actually be done in a hacky way with the existing implementation of this we have, b
17.
▲
by
dsherret
4y ago
Deno already analyzes the entire module graph before the application starts up, so we extract out the npm specifiers ahead of time, do the npm dependency analysis, cache any packages as needed, then start execution.
18.
▲
by
dsherret
4y ago
Fresh has had a lot of development since then. See the "Production Ready" section in blog post for the latest thoughts: > Fresh 1.0 is a stable release and can be relied upon for production use. Much of Deno's public web s
19.
▲
by
dsherret
4y ago
Type checking still occurs for `deno test`, which is what's mostly used for development. `deno run` won't have it by default because usually you run programs that are already type checked, but if you want it you will be able to ad
20.
▲
by
dsherret
4y ago
There is one here: https://github.com/dprint/dprint-vscode
21.
▲
by
dsherret
4y ago
It's definitely something I would like to implement. I haven't found a parser that would be good for formatting yet so maybe I will have to write my own :/
22.
▲
by
dsherret
4y ago
I know. I've been wondering if there's a way this complexity could be buried in the GitHub action for dprint ( https://github.com/dprint/check ) so people would only have to specify that and everything would ju
23.
▲
by
dsherret
4y ago
The title of the article was and is "Speeding up Prettier locally and on your CI with dprint". If you use the Rust-based plugins instead of Prettier it will be much faster as noted at the end of the article. To add another advanta
24.
▲
by
dsherret
4y ago
Yes, the 40x faster is only for the runs after the first in this scenario. That said, if I disable the incremental cache locally (dprint check --incremental=false) and run this on the example code linked to in the article, on my machine the
25.
▲
by
dsherret
4y ago
To be clear, I created this site quickly on Deno Deploy this weekend (I'm the author) and didn't bother getting a proper domain yet. Hacker news is cutting off the subdomain of david.deno.dev and this is just a personal post about
26.
▲
by
dsherret
5y ago
The equivalent in Deno is: $ deno eval -p "1 + 1" 2
27.
▲
by
dsherret
5y ago
Just to be clear, `deno eval "console.log(5)"` has existed for some time which is similar to `node -e "console.log(5)"`. In this case, the deno repl subcommand's --eval flag provides a cross-platform way to evaluate