crowlKats
crowlKats on Hacker News
apologies, this is inaccurate currently, will get things updated
could you try again? it should be available now (no need to update deno CLI)
Posted by
crowlKats on Monday February 12, 2024 @06:24AM
from the kitsonkelly.com dept.
yes, the doc.deno.land is relatively outdated and uses an old system. our static generator via the doc subcommand and registry are the newer systems
Hey, Leo from Deno here.
We recently released a static HTML documentation generator via our `deno doc` subcommand.
We also have a similar system for our registry (here an example: https://deno.land/[email protected]/http/mod.ts?s=Server).
But we have an outdated system for general use, which is similar to what you have built: https://doc.deno.land/.
Did you know about this, and did you want to built your own system regardless, or did you not know about it and would this have been something you would have used instead of creating your own system?
Posted by
crowlKats on Friday November 24, 2023 @07:04PM
from the gfx-rs.github.io dept.
There are no removals in the CLI, and std is considered unstable, and due to that has different versioning that is still in 0.x
ARM64 builds are something that has been getting investigated. The biggest problem is that github doesnt provide any ARM64 runners, so workarounds around that are necessary
deps.ts is currently the most common way, however new projects like fresh use import maps. the problem with importmaps is they are not composable, as such, using an importmap for a library is usually bad as said importmap is not picked up and used, so the end-user would have to add their own importmap with entries compatible for the library (this is what fresh does: it generates an importmap with entries it needs). due to this problem, deps.ts is the most common solution, however I do hope that composability issue with importmaps will change.
proper applications as well. example is the
https://deno.land website has an average CPU time of 6ms. CPU time means it doesnt include any IO bound operations, so ie doing a fetch request wont really contribute to the CPU time.
The M1 builds are made manually by us, as github doesnt provide any runners. the same problem does apply for linux arm, however we don't have any arm linux systems any one of the members use; and building on a pi is a no-go, as that can take 70+ minutes, so that would make our release cycle a lot more complicated. Either way, we are investigating potential possibilities besides waiting for github to have runners available
> It is using silly naming conventions in filenames as an alternative to specifying routes. eg /users/[name].tsx for /users/:name
Its a convention also used by Next.js, so it is just sticking to existing conventions.
> There is no documentation about the islands or how they are implemented.
Documentation is still only partial & incomplete.
> It says there is no build step but there has to be one because v8 runs JavaScript not TypeScript
This is a module for Deno, which does that under the hood, it isnt something a deno user would have to be concerned with.
I wouldnt say an iframe and this are in any way shape or form comparable. this is a "full-fledged" website.
> except that if node.land or crux.land go down, you've lost your reproducibility.
Dependencies are cached. This is no different from if npm would go down.
> The only semi-interesting thing here is that this demo pulls dependencies from 3rd party registries via HTTP without an explicit install step
Given that this seems interesting to you, it seems you haven't heard of Deno (https://deno.land). It is not related to node in terms of environment, its a new completely separate runtime.
In regards to your node example, this is fairly different:
the dependency pulled in from deno.land is a wrapper around the built-in http server, which does various error handling for you and simplifies the usage.
The router isnt a simple switch statement either; its a URLPattern (the web's version of path-to-regexp) based minimal router. Campring these to the node built-ins isnt exactly a fair comparison I would say.
Also on top of this, with node you need a configuration to get typescript working, then you need a package.json, etc etc.
Deno uses tokio instead of libuv. Deno comes with a large amount of tooling built-in: formatting, testing, linting, documentation, and other
Posted by
crowlKats on Sunday May 23, 2021 @03:59AM
from the caspervonb.xyz dept.
Yes, there is the unstable plugin system that can be used for that
For people seeking a solution, one can use deno_dom, which implements various DOM related APIs, including DOMParser, which lets you parse XML
The problem is that the blogpost added videos, which made cloudflare trigger and think that all the .ts files we distrubte are MPEG Transport Stream files, which would violate CF's ToS on streaming.
There is also Google's Dawn implementation