HNHacker News
TopNewBestAskShowJobs

faisalhackshah

54 karma · joined April 12, 2019

submissionscomments
faisalhackshah··on Ask HN: Any Vim users who are sticking with Vim over Neovim?
Yes. I tried Neovim last year. Spent 1 day, and did not achieve parity with my Vim setup so I abandoned it. A contributing factor may have been: getting distracted with analogous plugins on the nvim side. Now that Bram is gone, I'll take another day or two and switch over sometime this year. I don't have to though. Vim works. It always has. It probably always will.
faisalhackshah··on Bram Moolenaar has died
Vim has been a great companion in my life, thanks Bram. People wonder why this 30 year old piece of software is so beloved. Most will never know.

I enjoy typing 'vim' to start it up. I've created aliases for other programs, but not vim. 'v' would work quite well in my setup. I love those 3 letters.

faisalhackshah··on White Rabbit Project (2020)
It seems that you're implying that nodes cannot be synchronized within the time it takes for light to travel between the nodes.

Images both nodes having their own atomic clocks. Now allow them to timestamp transmitted and received messages with very high precision.

faisalhackshah··on Casio-F-91W die-shot
15 seconds per month is about 6.7ppm. That's well within typical crystal oscillator accuracy. If you need more than that (without external time correction such as gps or radio/internet), you need expensive oscillators with temperature compensation or even ovenized units.
faisalhackshah··on Matrix was worth the effort to self host
This is my exact use case. I disabled federation, hand out account tokens to my kids' friends so they can make their own accounts (public registration is disabled). I used that popular Synapse Ansible deploy project, and deployed it on the cheapest Hetzner VPS. Been running flawlessly for over a year now.
faisalhackshah··on Is there hope for Linux on smartphones? [video]
Because mobile (basically ARM) is not a standardized platform like the PC. PC architecture has dozens of interoperability standards the entire PC ecosystem adheres to. Everything from boot up, to DMA controllers, to protocols for device capability discovery, and more .. You can think of each ARM board as its own bespoke platform (needing it's own device tree/bsp).
faisalhackshah··on Ask HN: Is switching from VSCode to Vim worth it?
If you're already comfortable with an editor (such as VSCode), don't worry about learning another one unless you inherently enjoy the journey (which it seems that you don't). Instead, invest some time learning features, keyboard shortcuts, and configurations of your current editor.

Also, if you use languages for which an IDE provides significant value - continue using whatever IDE you are using (... if you don't enjoy the vim/shell lifestyle). Vim is not an IDE, though it can eventually be configured to act like one. If you mainly program in C for example, an IDE provides minimal value beyond what a lightly configured Vim would provide.

Source: Near-full time vimmer and terminal tools user. I found joy in the journey as an end in and of itself.

faisalhackshah··on Ask HN: What are the first things you do with a new laptop?
Extract windows product key just in case. Install Kubuntu. Pull dotfiles from GitHub, and run installenv.sh . Done, I'm home.
faisalhackshah··on Vim Galore: everything you need to know about Vim
1. Fugitive.vim 2. Fzf.vim . If you launch vim from a path includes both repos, it will just work. If not, you can provide a starting path argument to the fzf file picker. 3. ctags (universal-ctags) + native vim tag jump functionality. Pair with gutentags plug-in to auto generate ctags when files change and the such.
faisalhackshah··on Code Review from the Command Line
You can also use "git difftool <commit>...<commit>" (with 3 dots).

https://git-scm.com/docs/git-diff#Documentation/git-diff.txt...

faisalhackshah··on Self hosting is important
Do you not think it's in the best interest of Element Matrix Services to ship Dendrite? Presumably it would reduce their cost of operations significantly ...
faisalhackshah··on Self hosting is important
This sounds like what you need: https://github.com/spantaleev/matrix-docker-ansible-deploy

I don't know anything about ansible, or much about docker, or self hosting. And I was able to set it up and it's working quite well for my family and friends. You don't have to enable federation. Set federation_domain_whitelist to an empty list, and poof, federation disabled.

DNS settings are pretty easy too - especially if you can allow your instance to take control over an entire domain (and don't have to host other web services other than what the playbook supports). Don't need the SRV stuff here: https://github.com/spantaleev/matrix-docker-ansible-deploy/b...

If you just have a private server for < 100 users, 1 vCPU and 2GB RAM is enough. I also use it for bridging to IRC using heisenbridge (which the playbook supports) and it's no problem on the tiny server.

Updates are very easy, pull the latest playbook, and run setup again. Done.

faisalhackshah··on Linux 5.0 shown to boot on ESP32 processor
Similar in the sense that both approaches essentially run Linux in a VM, virtualizing the typical hardware required such as the MMU. In essence, it's the esp32 version isn't much different, just faster as the core is faster.

Would be cool to get no-MMU Linux running on it. I've seen that run on STM32F7's natively..

faisalhackshah··on Linux 5.0 shown to boot on ESP32 processor
Sort of equivalent to this: https://hackaday.com/2012/03/28/building-the-worst-linux-pc-...
faisalhackshah··on Ask HN: Did you quit smoking cannabis? If so, why?
I appreciate the info. I'm glad you found a way to deal with your migraines. Cheers.
faisalhackshah··on Ask HN: Did you quit smoking cannabis? If so, why?
Thanks for the info. That correlates with what I have read. CBD on its own doesn't help, need a balance between CBD and THC.

I haven't heard about using mushrooms for migraine, sounds interesting. How much do you actually take? Does it effect your ability to be productive?

faisalhackshah··on Ask HN: Did you quit smoking cannabis? If so, why?
You mentioned that cannabis helped or helps with your migraines. Can you elaborate a bit on this? How did you figure out which strains help (and which specific ones), dosage, flower, edibles, etc .. Does it help as a preventative, or an abortive? Does the efficacy wane over time, forcing you to up the dosage?
faisalhackshah··on Waymo CEO dismisses Tesla self-driving plan: “This is not how it works”
Robot vacuums typically don't use Lidar. They user a laser pointer and an offset camera. Distance is estimated by the pixel offset between the laser dot, and the center of the image.

Object very far away: Laser dot in center of image. Object very close: Laser dot at maximal offset from center of image.

faisalhackshah··on Re-Thinking the Desktop OS
> And even that is a horrible experience because the iPad keyboard doesn’t allow key repeat, making vim a terrible experience. That used to be an issue anyway. Maybe they’ve fixed it.

Isn't Vim the editor with the least reliance upon key repeat? Hardcore Vimmers would argue if you are using key repeat, you're doing it wrong.

What do you use key repeat for in Vim?

faisalhackshah··on Simple Software Manifesto
Why use C? Constrained with no macros? What about undefined behavior?

Rewrite in Zig!

faisalhackshah··on NuttX – A POSIX-compliant RTOS for embedded platforms
Correct, and upvoted.
faisalhackshah··on NuttX – A POSIX-compliant RTOS for embedded platforms
ArduPilot has switched from NuttX to ChibiOS. See the video for more information [1]. If you don't require POSIX compatibility, it's really the way to go. The kernel is very fast, and the HAL is much better compared to the typical vendor peripheral libraries. Definitely take a look at it if you've used FreeRTOS in the past. The community is excellent too with high SNR content [2], and the main developer is very responsive.

[1]: https://www.youtube.com/watch?v=y2KCB0a3xMg

[2]: http://www.chibios.com/forum/index.php