News for hackers. Stuff that matters.

acdibble

Re:Deno 1.35: A fast and convenient way to build web servers on Wednesday July 05, 2023 @05:47PM (#36607617)
It’ll bundle the entire V8 engine. You can expect probably close to 80mb for a hello world app.
HexFiend (https://hexfiend.com/) works well for files of enormous size but is only a hex editor.
Re:Complete Rewrite of ESLint on Monday November 28, 2022 @08:26AM (#33773349)
> Make ESLint type-aware. This seems to be something we keep banging our heads against -- we just don't have any way of knowing what type of value a variable contains. If we knew that, we'd be able to catch a lot more errors. Maybe we could find a way to consume TypeScript data for this?

An ESLint plugin manages to do this well[1]. Would be nice to have this functionality built in natively although you do take a performance hit because you have to run the compiler.

[1] https://typescript-eslint.io/docs/linting/typed-linting

Re:W3.css – A minimal alternative to Bootstrap on Wednesday September 14, 2022 @05:42AM (#32834998)
Re:The WebSocket Handbook on Tuesday January 11, 2022 @01:17PM (#29895360)
Just this past weekend, I created a service for transferring files that is built on websockets (https://qr.dibble.codes / https://github.com/acdibble/qr-transfer). It's still rough and very MVP, but it's functional.

My use case was I wanted to transfer a PDF to an Android-based tablet but in the moment didn't want to log into my email. I couldn't think of any quick, easy, and cross-platform solutions so I decided to write the service.

It's built on socket.io which is a godsend for websockets because it automatically handles so much grunt work and your app just works.

Re:The joy of building a ray tracer, for fun, in Rust on Tuesday January 04, 2022 @12:02PM (#29797004)
This looks neat. Am I understanding it correctly that it's written in pseudocode?
Re:Rome will be written in Rust on Wednesday September 22, 2021 @10:06AM (#28616442)
Probably just a typo due to the topic of the thread, but esbuild is written in Go.
Re:Rome will be written in Rust on Tuesday September 21, 2021 @03:58PM (#28609200)
Deno linter: https://deno.land/manual/tools/linter

Deno format: https://deno.land/manual/tools/formatter

Deno bundle: https://deno.land/manual/tools/bundler

Not sure about polyfilling, but it might leverage TSC for that?

Added bonus is Deno compile, for creating standalone executables: https://deno.land/manual/tools/compiler

Elixir includes IO.inspect[1], which prints a value and then returns it. It makes it easy to insert this function into a pipeline without disrupting the existing logic[2].

[1] https://hexdocs.pm/elixir/1.12/IO.html#inspect/2

[2] https://elixir-lang.org/getting-started/debugging.html

Re:Elixir 1.12 on Wednesday May 19, 2021 @07:46AM (#27207259)
I host a pet project Slack bot on a Digital Ocean droplet. You can compile an Elixir app into an executable that treeshakes the BEAM. I can't speak to memory usage, but deployment for me is as easy as compiling an executable and putting it on the server.
Re:M1 dev setup with a virtual Linux box on Sunday April 11, 2021 @08:17AM (#26769796)
If you use fractional scaling on Wayland, Chromium-based applications will render blurry. Obviously it's a Chromium issue but it's been around for a while and is a bad experience.
Re:Lovely Week with Elixir on Wednesday May 20, 2020 @04:57PM (#23251712)
If there is only one process running this GenServer, there will only be one instance of the job in the system.

An BEAM process, and therefore a GenServer, has an atomic message queue built in. Only the process itself can pop messages out of its queue, so there is no need for locking. It is not possible to get messages out of the queue concurrently. Messages can be processed concurrently, but that's after they've already been removed from the queue.

Re:Ask HN: How do you manage self-study? on Monday May 04, 2020 @06:29AM (#23066403)
Is it essentially nand2tetris in game format? I tried making my way through that a couple times but maybe some gamification is just what I needed.
Re:Vercel, formerly Zeit, raises $21M Series A on Tuesday April 21, 2020 @08:06AM (#22934155)
It's not just JavaScript with that issue... https://0.30000000000000004.com/
Also inspired by the same post, I set up a TIL repo. I went with a shell script where you pass the category and the filename and it creates the file and recreates the README: https://github.com/acdibble/til/blob/master/create_til.sh