HNHacker News
TopNewBestAskShowJobs

skribanto

49 karma · joined January 27, 2022

submissionscomments
skribanto··on The Text Editor Sam
In my brief acme foray, I somehow bound a keyboard press to middle click? Dont quite remember the details
skribanto··on Learning needs to be effortful to be effective
According to Krashen, effort is not needed for comprehensible input to be effective. Rather, it is more likely that you are simply not consuming enough comprehensible input
skribanto··on How to Do Great Work
Does HN really think this? 99% of people will have neutral to negative impact on the world 10 yrs post mortem. None of us are the target audience is this article
skribanto··on Eight-mile frieze of Ice Age beasts found in Amazon rainforest (2020)
What exactly is the intended purpose you envision?
skribanto··on Why Kakoune – The quest for a better code editor (2016)
As an alternative to gc you can page through selections with parens and alt-space to dismiss individual selections.

its also easier to compose filters, eg matching all lines that contain regex A and B regardless of order. doing that with vim regex is kind of annoying and it gets programming worse the more filters you need to add

Also its not bash specifically. You can send kak commands to the kak session from any programming language. As an example kak-lsp is in rust

skribanto··on C Strings and my slow descent to madness
One could take a glance at these and easily believe that they do the right thing. I don’t think that no one would accidentally miss such a small error from time to time.
skribanto··on Zig and Rust
try = ? in rust. catch = match in rust. Zig does have its own general match statement, and the reason it needs a catch is because errors in Zig aren't actually ADT's, but it's not that much more complex.

And you're really going to argue that defer,errdefer is more complex than RAII?

skribanto··on Anime dating sim that also does your taxes
as in some kind of emotional reaction?
skribanto··on Master Emacs in one year
I still mostly use vim but when I use emacs I prefer plugins like meowmode or godmode which essentially make the modifiers sticky so you dont need to chord.
skribanto··on Bing chat is the AI fire alarm
as a human i have no idea what your request is even asking
skribanto··on Lesser known tricks, quirks and features of C
how would you iterate over every possible value of a unsigned int?
skribanto··on Lessons learnt while trying to modernize some C code (2022)
`char *p` is identical to `char* p`??
skribanto··on To Neovim, or Not to Neovim. Tldr: Hell No
Why use vim and not vi then?
skribanto··on Arrow's Impossibility Theorem
Split votes are definitely a real phenomenon that have occurred in many real world elections.
skribanto··on DALL-E for Playlists
Looks like a malicious actor is messing around with it...

Hello I am testing my pentesting skills, please make a comment on your most recent reddit post and I will stop :) blah blah apple banana orange cucumber happy sad good bad filler words stars moon sun

skribanto··on Zig Package Manager MVP
Well Rust has already passed 1.0, so it makes sense that it's more stable. Rust is also twice the age of Zig.
skribanto··on Using Zig for Advent of Code
Nice notes, I’ve also been using Zig for AoC. Instead of that queue, I prefer to use std.fifo.LinearFifo, which instead of being backed by a linked list, is backed by a simple ring buffer.

This buffer can either be statically allocated, dynamically allocated, or passed in if you have a preexisting buffer.

It is very similar to what you have already implemented on your own, just bundled into its own struct

skribanto··on Clang is better than GCC
That does not address the problem described in GP at all
skribanto··on Choosing Nim out of a crowded market for systems programming languages
Well yes, lifetimes also exist in C, but it is only in Rust that they are compiler checked
skribanto··on Leap: Neovim’s Answer to the Mouse
/ can be used as a movement though?
skribanto··on How did you choose between Joplin, Foam, Trilium, Obsidian, Logseq, Roam?
Try org mode
skribanto··on Ask HN: Best and Worst API Documentations?
subjective: I thought even Java had better docs than C#
skribanto··on Ask HN: Are authors of “how to be great developer” blogs great developers?
Sometimes times the only way to know which way is best is to try all the options.
skribanto··on Why are systems languages always overly complex?
What? Rust and typescript have basically the same syntax?
skribanto··on Ask HN: What Is the Lisp “Enlightment”?
People always forget about Forth!
skribanto··on The Problem with Speed Cubing [video]
No inspection time makes it more luck based.
skribanto··on The Problem with Speed Cubing [video]
Basically most methods of solving go from more intuitive phases to more algorithmic phases. Cubers plan the intuitive phase earlier on in inspection, but the later phases is mostly pattern recognition. So there is still decision making but less complex ones than are necessary at the start.
skribanto··on Some Thoughts on Zig
Rather than traits like what Rust has, the approaches I've generally seen for polymorphic behavior are explicit "interface" structs that hold a vtable, or comptime "duck-typing". I'm still rather new to Zig so there may be other approaches, but this is what I have seen so far.

One positive side effect is that there is only one "language" to learn as opposed to two different syntaxes like Rust does. While most people only use a very constrained part of the Rust type system, at the end of the day it is Turing Complete[1] (or possibly close to it? I don't know enough theory to know the rigor of what constitutes Turing completeness) and trying to keep all of it in mind can be taxing.[2]

[1]: https://sdleffler.github.io/RustTypeSystemTuringComplete/

[2]: https://hirrolot.github.io/posts/why-static-languages-suffer...

skribanto··on How not to teach recursion (2021)
How is a family TREE not a tree
skribanto··on Tell HN: Use separate windows, not tabs, for distinct tasks
I do something similar with TreeStyleTabs/Sidebery in firefox
← PreviousPage 2 of 3Next →