14 ms·
Deno 1.4
- colesantiago 6y agoIs anyone using Deno at scale or in production yet?
- I_am_tiberius 6y agoI don't think Deno supports SSL yet.
- fulafel 6y agoThe ticket for TLS support was closed in December (https://github.com/denoland/deno/issues/1568 https://github.com/denoland/deno/issues/1568) and there seems to be a lot of TLS support including esoteric use cases now.
- moderation 6y agoTLS is supported but poorly documented. I got something working after scouring Github issues and Stack Overflow. HTTP/2 is not yet supported.
- gorbypark 6y agoDeno not supporting TLS isn't a show stopper, in my opinion. Not many production environments expose Deno (or Node) instances directly, but rather have a reverse proxy sitting in front providing SSL and routing.
- bigyikes 6y agoIt’s totally a breeze to get https set up with Caddy.
- kvz 6y agoBetter leave that to a terminator/proxy anyway unless you’re interested in hotpatching your app layer every month. It’s usually less problematic to upgrade a proxy.
- aaomidi 6y agoGood, use webservers that get property audited.
- BossingAround 6y agoMy rule of thumb is to use TLS everywhere for everything unless I have a proper reason for not using it (i.e. strong performance hit). mTLS in a Kubernetes cluster with Istio was a killer feature for us.
- nurettin 6y agoIs there any demand for that? I mean in 2020 you are one docker command away from having an automatically refreshing tls server ready and serving.
- brodo 6y agoA lot of people are moving as many security features as possible out of the application and into the infrastructure.
- ecmascript 6y agoMe and my friend use it in production for hobby projects. It works great so far with very few issues but you kind of have to keep up to date and the updates are coming really, really fast.
- zigzaggy 6y agoThanks for the heads up, can’t quite understand why you’re getting downvoted. What kind of project are you using it on?
- oblio 6y agoI didn't down vote but I'd imagine his down votes are because he said "using in production for hobby projects". When people ask about production, they usually want stuff where money is at stake, or even better, someone's livelihood.
- ecmascript 6y agoWho said we don't make money from our side projects?
- gedy 6y ago"Hobby" implied that
- jlokier 6y agoFor me, "production" is the stable, tested version you ship that runs constantly. The one facing most users. You can have hobby projects with users, and 24x7 uptimes being a goal. It makes sense to distinguish "dev" from "prod" with those and to use mechanized testing and CI/CD, just as with commercial projects. A lot of open source projects fall into this category.
- ecmascript 6y agoI was being downvoted because of classic HN elitism which is getting worse every day. Several web projects, I don't really want to link it here to out myself, but one is a podcast player.
- ignoramous 6y agofly.io is [0]. [0] https://news.ycombinator.com/item?id=22621926 https://news.ycombinator.com/item?id=22621926
- akritrime 6y agoI wish the docs for the rust crates got some love. It seems super interesting but its hard to figure out where to start.
- josalhor 6y agoOut of curiosity, how would you improve them?
- akritrime 6y agoI just started digging into it a few hours back, so I can't give you a concrete answer. A hello world example for the deno_core to give an idea on how the Ops and ResourceIds should be used. The examples given are not really clear at a glance what they are doing and I had to read through a few of the test cases before I got some idea how JsRuntime should work.
- lucacasonato 6y agoWe definitely want to improve docs, but the Rust side of things changes so much it is really difficult to keep stuff up to date. A lot of refactoring is happening currently, but once that settles down some, it will make more sense to write proper docs.
- skyfaller 6y agoCan someone explain like I'm five what Deno is and what it's for? Is it for the desktop or web applications? What practical things can you / should you do with it? I just can't get my head around what it does.
- aaomidi 6y agoIt's an alternative to nodejs. What you do in nodejs is generally possible in deno.
- TheDong 6y agodeno is 'node' shifted by two letters. What do you use nodejs for? That's what you use deno for. It exists in the same space. So in short, deno is a javascript interpreter suitable for local scripting, server/services, etc. Just like node. You can probably use it for desktop applications, but it more closely targets server code, again like node. So how does deno differ from node? It has a different module system and stdlib (better, more modern). It has first-class typescript support. It has much better security controls so that it's possible to use it to interpret untrusted code (this is not security advice). The 'untrusted code' bit means deno's also gunning a little for the niche lua and other embedded scripting languages occupy, but I don't think it has much of a foothold there yet.
- otabdeveloper4 6y agoAs someone who has done lots of embedded Lua, I can confidently say that embedding V8 is definitely not what I want. I want an embedded statically-typed language that compiles directly to something that is memory layout compatible with C++. We have 1001 languages now, but it looks like I'd still have to write my own to get what I want...
- oblio 6y agoI'm not a low level dev, but I've read quite a bit about this over the years. I have a question: > I want an embedded statically-typed language that compiles directly to something that is memory layout compatible with C++. Isn't this asking for ABI compatibility with C++? I thought C++'s ABI is unstable so nothing can be compatible with it.
- svnpenn 6y agoNote that Deno is missing locale support. So for example this: (1000).toLocaleString(); will get you "1,000" with Node, but "1000" with Deno: https://github.com/denoland/deno/issues/1968 https://github.com/denoland/deno/issues/1968
- piscisaureus 6y agoEcma-402 support (the 'Intl' object, locale dependent number and date formatting, etc.) requires linking with the ICU library. We expect to support that in a future release.
- benatkin 6y agoIn the meantime there's stuff like this: https://deno.land/x/date_fns@v2.15.0/locale https://deno.land/x/date_fns@v2.15.0/locale
- dang 6y agoA large thread about 1.0 from a few months ago: https://news.ycombinator.com/item?id=23172483 https://news.ycombinator.com/item?id=23172483
- spark3k 6y agoWhat’s the killer feature that will lead to node developers switching over in droves?
- kybernetikos 6y agoIt's just so different, lots of people could claim different killer features. A strong contender for one section of the community might be the first class typescript support. Other people might like the way you can run so much from a single executable. Anyway, node is a pretty mature platform now, if it dies, it'll die like java-the-language is dying. Very very slowly, and with parts of its platform holding out much longer than other parts. Or alternatively it'll evolve and slowly adopt things from other ecosystems. I don't think we're at the stage where we can say that a bet on deno is definitely right, but it has a lot of interesting ideas and lots of people will be picking it up where they can. If you're interested in the difference between node and deno, check out the talk '10 things I regret about Node' https://www.youtube.com/watch?time_continue=1&v=M3BM9TB-8yA&feature=emb_logo https://www.youtube.com/watch?time_continue=1&v=M3BM9TB-8yA&...
- silentprog 6y agoSince when is java slowly dieing?
- andai 6y agoIt's been 3 billion devices for twenty years :)
- snazz 6y agoJava mindshare has been dying for a long time. That said, it's still taught in schools and all sorts of companies still use it (including "cool" ones like Google and Apple).
- The_Colonel 6y agoJava mindshare might be slowly shrinking but it is very, very far from dying.
- 29athrowaway 6y agoI gave Deno a try last night. There seemed to be some few alternatives to work with databases but I would like to see some more maturity before using this on production.
- 29athrowaway 6y agoThe installation steps do not include cargo, which is another way to get cargo installed if you happen to have rust installed.
- caspervonb 6y agoRustup is the way to install rust and cargo.
- 29athrowaway 6y agoWhat I mean is that you can run: cargo install deno ...to install deno. This is not mentioned in the article.
- caspervonb 6y agoWouldn't recommend it, takes quite a while to build from source.
- 29athrowaway 6y agoLike 2 min.
- deleted 6y ago[deleted]