Does this mean we can finally get a REPL where a file can be loaded, modified, then reloaded, without having to restart the whole thing? Seriously my biggest pet peeve with both deno and node.js. In every other REPL I've used this is basic functionality. When I talk about this to JS people they look at me like I'm from mars.
Deno has a built-in repl https://deno.land/manual/tools/repl
Deno raises $21M
371–380 of 397 posts
Re: Deno raises $21M
#372Deno overstates the problem it is intended to solve because its founders needed to justify achieving funding by being developer-famous. Let's say a company were to adopt this tech over Node, well, it seems like it would be slightly better, but probably not much of a game-changer. I'll leave it to y'all to talk about what tech is truly interesting as I don't want to seem ideological/biased, I just don't see how Deno i…
TFA goes: Try Deno Deploy - you will be surprised at the speed and simplicity. Deno Deploy (and Cloudflare Workers) is a big deal. At least for a small tech shop like ours, I've come to found it useful for >50% of the solutions we have to implement. Its simplicity and cost-effectiveness reminds me of S3 back when it launched: 5 APIs and pay-what-you-use billing. Sure, right now, Deno Deploy's capabilities are limited…
Re: Deno raises $21M
#373I find Deno very interesting. It's written in Rust by Mozilla, executing TypeScript by Microsoft on V8 engine by Google, and its name is sorted version of Node. That aside, I have been very productive with Deno. Web Standards are going in the right direction, and Deno helps using them easy. The Request/Response model with streams make a lot of sense, and provides lots of way to optimize. I understand performance is n…
node can do all this stuff too
And if I want to write a web server, well, time to find out what the trendy web server these days, and which router to use.
Whereas I can just create a main.ts file, `deno run/test -A --watch main.ts` and start importing the server from std.
Yes, you can do pretty much anything in anything, but for me, Deno lets me start up faster.
Oh, and we're not getting to the cross-platform build yet.
Re: Deno raises $21M
#374Earlier quoted context omitted.
I think the point was merely that JavaScript is obviously not the "universal scripting language" and claiming it is demonstrates not just hubris but ignorance. That said, I have tons of little one-off utilities I launch with "go run random-thing.go" because I don't care about the second or two it takes to compile, and if C were my everyday language I'm sure I'd have a compile-and-run wrapper handy. At that point, it'…
Which scripting language has a better claim to being universal? JavaScript runs on billions of diverse systems worldwide, both browser, server and CLI.
Re: Deno raises $21M
#375Earlier quoted context omitted.
What’s the SQL story? SQLite, or is PostgreSQL fast enough on startup?
You don't run the database itself there, you connect to it remotely. I've not had a chance to try them yet, but PlanetScale Portals look like a great solution there. https://planetscale.com/blog/introducing-planetscale-portals...
Re: Deno raises $21M
#376Earlier quoted context omitted.
I imagine you are already aware, but the creator of Node, Ryan Dahl, is also the creator for Deno. He is trying to create a new language which integrates what he learned from building Node.
New language or new runtime?
Re: Deno raises $21M
#377Earlier quoted context omitted.
What about using an npm package in deno?
Has been possible (and surprinsingly easy) for a while through CDNs like skypack or esm.sh
https://github.com/esm-dev/esm.sh/issues?q=is%3Aissue+is%3Ao...
Re: Deno raises $21M
#378Deno overstates the problem it is intended to solve because its founders needed to justify achieving funding by being developer-famous. Let's say a company were to adopt this tech over Node, well, it seems like it would be slightly better, but probably not much of a game-changer. I'll leave it to y'all to talk about what tech is truly interesting as I don't want to seem ideological/biased, I just don't see how Deno i…
> its founders needed to justify achieving funding by being developer-famous. If I remember my Javascript-of-the-week-drama correctly, didn't Deno become a thing because a couple node/npm devs were upset that there was someone in the core node/npm team who did a bad thing? Am I remembering this right?
Re: Deno raises $21M
#379Earlier quoted context omitted.
Lambda and most similar technologies use variants of containers, not VMs. Outside HN that distinction might not be important. Here being pedantically correct does matter on this because the VM abstraction has been around for a long time, whereas containers were an enabling technology for serverless. And containers and the fast startup, security and resource consumption guarantees they offer is a big difference to the…
Lambda and Fargate use the Firecracker VM https://firecracker-microvm.github.io/ Firecracker is a virtual machine monitor (VMM) that uses the Linux Kernel-based Virtual Machine (KVM) to create and manage microVMs. Firecracker has a minimalist design. It excludes unnecessary devices and guest functionality to reduce the memory footprint and attack surface area of each microVM “How AWS’s Firecracker Virtual Machines wo…
Re: Deno raises $21M
#380Earlier quoted context omitted.
Is there thought? What's the actual difference between (JS): let x = await doSomeLongProcess(); console.log("done: " + x); vs (Python) x = await do_some_long_process() print("done: " + x)
Sure, if you use Python's async feature. But my understanding is that it's relatively uncommon; blocking IO is still the norm, right? I for one have worked in or around a couple of nontrivial Python servers, and I've never once seen an await statement. My understanding (correct me if I'm wrong) is that this comes down to it being newer, and having worse ecosystem support (more "synchronous-colored" APIs, less battle-…