Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
faho
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
by
faho
2y ago
The rust cygwin target has been merged (in a different attempt): https://github.com/rust-lang/rust/pull/134999
2.
▲
by
faho
2y ago
No, they work in zsh, with one extremely small change: The referenced variable needs to exist. Try this (tested with zsh 5.9 on archlinux): foo='PWD[$(echo hahaha >&2)0]+42' [[ "$foo" -eq 5 ]] In bash
3.
▲
by
faho
2y ago
Fish has always used utf-32 codepoints stored in wchar_t, from the first git commit in 2005. Unfortunately it's pervasive throughout the entire codebase (which does a lot of string shuffling). So it's a historical mistake, but not
4.
▲
by
faho
4y ago
>Matrix's moderation should be at least as good as Gitter Well, yes and no. The moderation features might be the same, but: 1. It's a lot easier to make matrix accounts, especially if you run your own server. 2. The user interf
5.
▲
by
faho
4y ago
The idea behind this series of posts is to see how much of python , concretely, is syntactic sugar and how much is necessary. How much could you do with e.g. doing macro transformation on top of a minimal core? The last post before this wa
6.
▲
by
faho
4y ago
Arch already has the nvidia drivers in the normal repos. You can just install them. This isn't something Manjaro adds.
7.
▲
by
faho
4y ago
Depends on your echo. Zsh's interpretes escape sequences by default unless the "BSD_ECHO" option is used, bash's doesn't unless "xpg_echo" is on. And xpg_echo is on by default for bash on macOS, so for use
8.
▲
by
faho
4y ago
One issue is that make will default to only using one job (i.e. one cpu), and you need to pass `-j NUMBER` to make it use more, while Ninja is parallel by default. For my uses, I've not found `ninja` to be much faster than `make -j8` o
9.
▲
by
faho
4y ago
Bash also turns off the bracketed paste, because it can't know if the command it is about to launch supports it. So that command would have to re-enable it itself. Something like emacs or vim might do so (or another bash, you can nest
10.
▲
by
faho
4y ago
"\r", "carriage return", is what the return/enter key sends (either that or "\n", it's configurable). So what's being sent from the terminal to bash here is "ls" (which is echoed back)
11.
▲
by
faho
4y ago
The original performance claim was about https://vimuser.org/cat.c.txt . Which just does read/write - so it's the same as the "cat-simple" example, which is the slowest listed. GNU cat [0] does copy_file_
12.
▲
by
faho
4y ago
First of all: Your code is missing braces around the `if` blocks - the `goto out` would be run unconditionally. But anyway, the case for `goto` here is that it jumps immediately to the cleanup that needs to happen always. If you put somethi
13.
▲
by
faho
4y ago
>This change prohibits nothing, it allows specifying something (which was a bit complicated to enforce before). It allows specifying a constraint - that you can't have two rows with the same values even if one of the values is a N
14.
▲
by
faho
4y ago
But an employee can't be car-less twice! That's what this change prohibits.
15.
▲
by
faho
4y ago
>But... "the shell and standard utilities and files that are in known locations and standard capabilities and various other things" are also specified by POSIX. Unfortunately, it doesn't specify those known locations. It e
16.
▲
by
faho
4y ago
These files are already in toml , so it's only "unnecessary" if you ask for them to switch the file format. Otherwise, adding tools to the standard library to read file formats required by the ecosystem is a good idea, regar
17.
▲
by
faho
4y ago
The first two lines are setup, real code would already have done that. You could maybe count the import, but you'd have to do that once and could do multiple bisections, so it's amortized. Setting the variable doesn't count
18.
▲
by
faho
4y ago
Or you can implement a binary search in your type's __contains__ and just use `"foo" in c`
19.
▲
by
faho
4y ago
CentOS 7 may have been released in 2014, but the software it shipped was already quite old then. As a datapoint, CentOS Stream 9 [0], which was released in 2021, and which RHEL 9 (released in May 2022) is based on, is already ~60% out of da
20.
▲
by
faho
4y ago
Fish also enables bracketed paste and does smart escaping when you paste inside single-quotes. (I'm a fish developer)
21.
▲
by
faho
4y ago
Would you mind posting a link to your tmux config? I'd look into it.
22.
▲
by
faho
4y ago
You're overthinking things, it's simply hyperbole.
23.
▲
by
faho
4y ago
He doesn't. Linus uses MicroEMACS [0], which is an entirely different editor that uses emacs bindings. It's not the lisp vm that incidentally happens to edit code that GNU Emacs is. Or, as he puts it [1]: > I use this abominati
24.
▲
by
faho
4y ago
And in english it's "Ivory Coast", in german it's "Elfenbeinküste". None of those is an official name tho, they are quite insistent that's exclusively the french one: >Therefore, in April 1986, the gove
25.
▲
by
faho
4y ago
Well, yeah, if you source the file (for which `.` is a shortcut) it runs in the current shell so the environment is intact. If you just run it it won't work. So instead of running `boop` you would always have to `source boop` or `. b
26.
▲
by
faho
4y ago
He's listed as the (co-)author on a number of PEPs: - PEP 533 – Deterministic cleanup for iterators - PEP 518 – Specifying Minimum Build System Requirements for Python Projects - PEP 517 – A build-system independent format for source t
27.
▲
by
faho
4y ago
For python code, yeah, most of it. Python does sometimes have backwards-incompatible changes, e.g. for 3.10 they removed a bunch of stdlib modules and methods, like the "formatter" and "parser" module [0]. So if you us
28.
▲
by
faho
4y ago
That news item is only saying that wireplumber will activate pipewire as an audio server, and won't allow you to use it for video only (with pulseaudio serving audio). It's irrelevant for those who've picked pipewire as audio
29.
▲
by
faho
4y ago
Plus a lot of interesting things aren't mentioned in terminfo - bracketed paste, cursor shaping, synchronized output, ... And even truecolor was added to it about 10 years after terminals started gaining support. And many terminals jus
30.
▲
by
faho
4y ago
>I may be generalising but I find older (40+) programmers more likely to write good code [...] >For example, in Common Lisp Technology choice can correlate with age. In Lisp's case I would expect that it's long past "co
More ›