HNHacker News
TopNewBestAskShowJobs

imran-iq

378 karma · joined November 4, 2021

submissionscomments
imran-iq··on WezTerm is a GPU-accelerated cross-platform terminal emulator written in Rust
The killer feature of kitty for me is `crtl-shift-e`[0]. I really wish more emulators would copy it. Wezterm has explicit hyperlinks[1], but it requires you to click it with a mouse which is the last thing I want to do when inside a terminal.

--

0: https://sw.kovidgoyal.net/kitty/conf/#shortcut-kitty.Open-UR...

1: https://wezfurlong.org/wezterm/hyperlinks.html#explicit-hype...

imran-iq··on WezTerm is a GPU-accelerated cross-platform terminal emulator written in Rust
It depends on your workflow and on your resolution too. For example I do most things exclusively inside the terminal. If you are using vim, and are making use of splits, on a 4k60hz(or 1440p144hz) screen and want to scroll on one split and not the other, you will notice how slow and laggy redraws are. This was especially noticeable on macos (yay work computers) for me, which led me down the GPU accelerated terminal rabbit hole. iterm2 had its metal renderer, which (at the time) only worked with ligatures disabled, whereas kitty/wez/etc did not have that limitation.

The litmus test I use is how smooth can the terminal emulator run `cmatrix` at fullscreen

imran-iq··on Emacs is not just an editor (2015)
Honestly the biggest blocker for me is just how slow emacs feels compared to (n)vim. Using both in a gpu accelerated terminal emulator, emacs just feels slower especially on larger files.

Granted, I have not tried to use emacs once the jit landed in 28 (or was it 29?). But it's something I really would really like to use since instead of having a different application for irc/mail/etc it could all just be emacs.

imran-iq··on GitHub Actions Down / Degraded
https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
imran-iq··on Webhooks with message brokers and Convoy
> Convoy is the fastest open-source webhooks gateway available today

The site mentions multiple times that convoy is the fastest, but fastest in what sense? Is anyone able to find/point me to benchmarks on the site to backup that claim.

imran-iq··on I_suck_and_my_tests_are_order_dependent
> I'm talking about the code being tested having global state that is deeply entrenched in how it works

Could you give a specific/actual example of this? Technically a database is global state that is deeply entrenched in how an app works, but its trivial to make order independent tests that require certain records to exist.

imran-iq··on SQLite the only database you will ever need in most cases (2021)
Yes it does[0]. Which makes the parent comment even more hilarious.

> By default, the configuration uses SQLite.

--- 0: https://docs.djangoproject.com/en/4.1/intro/tutorial02/

imran-iq··on Hermes: An open-source document management system
It seems like it manages some metadata around google docs, but google docs is doing all the heavy lifting (creating/editing/sharing documents). Which begs the question, why?

By titling itself as a document management system I would assume it would be something like paperless-ngx[0] or mayan edms[1]. The latter of which has a built in workflow system[2].

But by being tied to google docs you can't really self host the important parts

---

0: https://github.com/paperless-ngx/paperless-ngx

1: https://gitlab.com/mayan-edms/mayan-edms

2: https://docs.mayan-edms.com/chapters/workflows.html

imran-iq··on Why Use Make (2013)
Since make 3.82 (which is about 12 years old now) supports `.RECIPEPREFIX`

  .RECIPEPREFIX = >

  all:
  > foo bar
imran-iq··on GitHub is sued, and we may learn something about Creative Commons licensing
> I'm still baffled as to why people treat Github like a public library

Because too many open source projects rely on it. Projects like crates.io force you to have a github account to use it. Most (neo)vim plugin managers give preferential treatment to github over other forges.

imran-iq··on Airtable lays off over 250
No kidding look at this list: https://curl.se/docs/companies.html
imran-iq··on Compiler Errors for Humans (2015)
Right but if you want to edit and fix files that failed compilation, using `:make` and the quickfix list is the vim way of doing it
imran-iq··on Compiler Errors for Humans (2015)
That's why you have `:make` which uses `errorfmt` to populate your quickfix list, which is covered in the help `:h make`
imran-iq··on Show HN: Paid job search? Are you nuts?
I get the following when trying to load the page: https://i.imgur.com/kJByl1O.png so cant really offer any feedback, page is unresponsive
imran-iq··on Building a simple shell in C – Part 3
> The problem is that when you write a program in C for the public, this program's buffer overflows and segfaults aren't a problem only for you, but also for everyone around you.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

imran-iq··on From Plex to Jellyfin Media Server
In my case not really. There is server side scanning in which plex shares data about your media with their backend. Not sure if there is any setting to disable that.

As far as the web client goes ublock origin handles it for me.

imran-iq··on From Plex to Jellyfin Media Server
> Nobody wants to deal with third party downtime

Not only that, I don't want my adblocker to have to block services running on my local network (they have some analytics + sentry).

imran-iq··on Tell HN: GitHub banned me permanently
What sort of comments did you make?

> This means that GitHub has effectively suspended my ability to participate in the development community, and also I cannot work as well, because my company uses GitHub

> I don’t know what to do anymore, I’m afraid, I’m going to be fired if I can’t work

You'll have to have a discussion with your employer/manager about why you can't use github any more.

imran-iq··on Thirteen Years of Go
In no real order

1. wide range of OS's you can target

2. no dependency on libc, you can build and copy over a binary to a machine and it will work

3. fast compiles

4. amazing stdlib, makes writing no to low dependency code very attainable

(imo) there's very little reason to start a new backend project in ruby/python/js when you can just use go and get better performance

> doesn't seem to be making much traction

Its one of the most in demand languages, at least according to linkedin in my area.

imran-iq··on Sudo: Heap-based overflow with small passwords
Because C can run on almost everything? For example, take Doom and the whole "Can it run Doom?" meme
imran-iq··on Robb Oat is a robot software engineer
Probably ended in the second chance pool: https://news.ycombinator.com/item?id=26998308
imran-iq··on SourceHut terms of service updates, cryptocurrency projects to be removed
Wayland is usable? I am using it currently as my display server and have been for many years

What use does crypto have?

imran-iq··on Video gaming may be associated with better cognitive performance in children
> I'm more so curious on what your first counterpoints in your mind would be

Just some anec-data. I did not have any consoles growing up simply because we could not afford them. Eventually we got a single very old very slow machine that was shared among the family. I know a few other people in the same situation (usually 1st/2nd generation immigrants). Thus in my mind, video games are luxury products, which are not affordable to low income households.

imran-iq··on Vim After 15 Years (2017)
Just my 2 cents on this

> I don't quite remember something and having the internal file history with a diff readily available.

You're already in a terminal, git is just one command away

> Some of the click and find implementation/usages never seems to quite there to me.

This really depends on the language you are working in, but generally vim's gd (and plugins that augment it) enough most of the time, otherwise grep/rg if you know what you are looking for. If you are using something really dynamic, e.g. ruby, then you're pretty much shit out of luck.

> I could go on, if you're truly being productive and not missing out on feature, more power to you.

Here's the thing, the best part about it vim is that it is not slow (plus paired with a terminal emulator like kitty/wez/alacritty). When I type the characters actually appear on the screen as I type them. With most IDE's (at least the ones I have used) there is a noticeable delay from when I have stopped typing and characters appearing on screen.

Another thing to add is that vim is very fast to start up and shut down, I open and close vim multiple times as I am working. With an IDE, startup times are atrocious and dont really fit my work style of cd'ing somewhere quickly editing something, cd'ing somewhere else and rinse and repeat.

In general I find the original command line tools to be much better than IDE provided equivalents or integrations, there's no unnecessary animations and much less cpu/ram usage. Though one exception for me is the database clients, where I much rather prefer a GUI than using the CLI client.

Your tests are already runnable from command line (assuming CI is setup).

Basically, Unix becomes your IDE

imran-iq··on Video gaming may be associated with better cognitive performance in children
> Video games are like the cheapest way to keep a kid busy for low income working parents

Source on that? Video games (console or pc) is very expensive and not something low income folks can generally afford for their kids.

imran-iq··on Focker is a FreeBSD image/jail orchestration tool in the vein of Docker
Is the author some sort of anti lockdown person? From the licence: https://github.com/sadaszewski/focker/blob/master/LICENSE#L9
imran-iq··on I have complicated feelings about TDD
That's the right way to do TDD, see this talk: https://www.youtube.com/watch?v=EZ05e7EMOLM

One of the above comments mentions BDD as a close cousin to TDD, but that is wrong as TDD is actually BDD as you should only be testing behaviours, which allow you to "fearlessly refactor"

imran-iq··on What I Miss About Working at Stripe
> And all of this for what?

To make their boss a billionaire at the cost of their own health

imran-iq··on Fran Blanche: This Is Not Legal
Microsoft already tried with mixer against twitch, its really hard to get users to move to a new platform when they are used to the old one
imran-iq··on Gitlab Architecture Overview
I've worked at two very large rails shops (think >10 billion dollar companies) both of which have had stupidly high ram requirements for their code without any image processing. Gitlab which also happens to be another billion dollar rails shop, also requires a stupid amount of ram as per the parent comment. I wonder what the common thread is...
← PreviousPage 3 of 4Next →