HNHacker News
TopNewBestAskShowJobs

1718627440

1,959 karma · joined June 17, 2024

submissionscomments
1718627440··on C for Rust programmers
It's not the syntax that's impressive. It's that most people who don't know C, likely wouldn't consider array access to be commutative.
1718627440··on Compiling Rust to readable C with Eurydice
Isn't "Eurydice" Greek, so I would expect it to be pronounced more like [eu̯.ry.dí.kɛː], so nothing remotely similar to "you"?
1718627440··on Show HN: Let your AI agents paint big arrows, boxes and text on your screen
I know this is not what you want, but actually:

   $ apropos dns
   [...]
   resolvectl (1)       - Resolve domain names, IPV4 and IPv6 addresses, DNS resource records, and services; introspect and reconfigure the DNS resolver
   [...]
   $ man resolvectl
   [...]
     dns [LINK [SERVER...]], domain [LINK [DOMAIN...]], default-route [LINK [BOOL...]], llmnr [LINK [MODE]], mdns [LINK [MODE]], dnssec [LINK [MODE]], dnsovertls [LINK [MODE]], nta [LINK [DOMAIN...]]

           Get/set per-interface DNS configuration. These commands may be used
           to configure various DNS settings for network interfaces. These
           commands may be used to inform systemd-resolved or systemd-networkd
           about per-interface DNS configuration determined through external
           means. The dns command expects IPv4 or IPv6 address specifications
           of DNS servers to use. Each address can optionally take a port
           number separated with ":", a network interface name or index
           separated with "%", and a Server Name Indication (SNI) separated
           with "#". When IPv6 address is specified with a port number, then
           the address must be in the square brackets. That is, the acceptable
           full formats are "111.222.333.444:9953%ifname#example.com" for IPv4
           and "[1111:2222::3333]:9953%ifname#example.com" for IPv6. The
           domain command expects valid DNS domains, possibly prefixed with
           "~", and configures a per-interface search or route-only domain.
           The default-route command expects a boolean parameter, and
           configures whether the link may be used as default route for DNS
           lookups, i.e. if it is suitable for lookups on domains no other
           link explicitly is configured for. The llmnr, mdns, dnssec and
           dnsovertls commands may be used to configure the per-interface
           LLMNR, MulticastDNS, DNSSEC and DNSOverTLS settings. Finally, nta
           command may be used to configure additional per-interface DNSSEC
           NTA domains.

           Commands dns, domain and nta can take a single empty string
           argument to clear their respective value lists.

           For details about these settings, their possible values and their
           effect, see the corresponding settings in systemd.network(5).


   [...]
Not too bad in my opinion. (I didn't actually knew before how to set the DNS server, never needed to do it.)
1718627440··on WSL3 Performance is about 5-60% faster than WSL2 depending on the workload
WSL2 is a different product from WSL1, not a different version. Is WSL3 now a different version of WSL2 or another separate product?
1718627440··on Keyboard differences between Windows and Macs
That's maybe, because (I was wrong and) it's LF, but pressing return produces CR, which is differentiable by an application.
1718627440··on Show HN: Let your AI agents paint big arrows, boxes and text on your screen
Isn't that what the command "apropos" does?
1718627440··on Show HN: Let your AI agents paint big arrows, boxes and text on your screen
> In 40 year software designers couldn't figure out that there should be a search function for every functionality that your computer provides.

apropos ?

1718627440··on Keyboard differences between Windows and Macs
Yes, shame on me. Should have conducted ascii(7) before making bold statements.

       Oct   Dec   Hex   Char                        Oct   Dec   Hex   Char
       ────────────────────────────────────────────────────────────────────────
       000   0     00    NUL '\0' (null character)   100   64    40    @
       001   1     01    SOH (start of heading)      101   65    41    A
       002   2     02    STX (start of text)         102   66    42    B
       003   3     03    ETX (end of text)           103   67    43    C
       004   4     04    EOT (end of transmission)   104   68    44    D
       005   5     05    ENQ (enquiry)               105   69    45    E
       006   6     06    ACK (acknowledge)           106   70    46    F
       007   7     07    BEL '\a' (bell)             107   71    47    G
       010   8     08    BS  '\b' (backspace)        110   72    48    H
       011   9     09    HT  '\t' (horizontal tab)   111   73    49    I
       012   10    0A    LF  '\n' (new line)         112   74    4A    J
       013   11    0B    VT  '\v' (vertical tab)     113   75    4B    K
       014   12    0C    FF  '\f' (form feed)        114   76    4C    L
       015   13    0D    CR  '\r' (carriage ret)     115   77    4D    M
1718627440··on Calling a function in C without naming it
Or make them in charge of the servers, then they stop trying to destroy things pretty quickly and start to use their energy for constructive things.
1718627440··on US imposes sanctions on ICC hours after former judge wins Nobel Peace Prize
2/3 of German voters(!) were not for Adolf Hitler[1]. Doesn't change the fact they got 1/3 of their country removed for that choice.

[1] https://en.wikipedia.org/wiki/March_1933_German_federal_elec...

1718627440··on US imposes sanctions on ICC hours after former judge wins Nobel Peace Prize
I think that is different, alone because the companies still call it "Google" and "Facebook" themself.
1718627440··on US imposes sanctions on ICC hours after former judge wins Nobel Peace Prize
Establishing precedent. Uncovering who is with him and who is "the enemy".
1718627440··on Keyboard differences between Windows and Macs
Why it just shows what happens on the paper?
1718627440··on Keyboard differences between Windows and Macs
> Then you might really like ctrl+k. Go to the middle of the line and it will delete everything from the cursor to the end of the line.

Actually it stands for _K_ill (opposite of _Y_ank), so you can get it back later too. Not sure, if that is also the case on Mac.

1718627440··on Keyboard differences between Windows and Macs
The "proper" CUA shortcuts work in the terminal too. (Ctrl/Shift-Ins)
1718627440··on Keyboard differences between Windows and Macs
That's because C-J IS ANSI Carriage Return. It's basically the absence of any special treatment.
1718627440··on Keyboard differences between Windows and Macs
> In what I would consider to be a fatal regression, GTK 4 just aliases <Control> and <Primary>, leaving the apps to do the work.

Gtk4 makes some many dumb decisions, that I always code new programs against Gtk3. They also deleted so many useful widgets and essentially said "We don't care implement it yourself". I can't afford my programs to become unusable just because they completely lost the plot, so I intend to keep using Gtk3 forever.

1718627440··on Keyboard differences between Windows and Macs
> because linux never picks the correct method

Because linux is not an operating system. A specific operating system will have some specific behaviour.

1718627440··on Keyboard differences between Windows and Macs
It would fit Prolog. You terminate the program, by proving that it doesn't exist.
1718627440··on Programming Isn't Special
There are different kind of arts. There is the art of a craftsmen and there is beautiful art. The former is rarely exhibited in museums unless is also has an historic value. It's the kind of excellence with that you do your work and it can be in fact in every kind of work you do.
1718627440··on Programming Isn't Special
A collective of workers in a field can very much decide what they want to get payed for. Craftsmen did exactly that for centuries, and that's in fact what makes them being known for quality and is thus in fact their business moat.
1718627440··on Germany transforms former coal mines into Europe's largest lake landscape
Why would that be unreasonable? Generating some power somewhere, sometime isn't hard. Generating the right amount at the right time in the right location is. (In other words logistics.)

So yeah the cost is in moving and storing the electricity by maintaining and expanding the infrastructure.

1718627440··on Trump says anyone who uses the phrase "artificial intelligence" is "the enemy"
A => B or A <=> B ?
1718627440··on Trump says anyone who uses the phrase "artificial intelligence" is "the enemy"
He certainly could advice "patriotic" top-level DNS servers to change "a few things".
1718627440··on OpenAI annualised revenues $20B less than previously signalled
What makes us sure, that his public statement reflect his opinion?
1718627440··on Nature's capacity to 'bounce back' when species are lost is overestimated: study
Depends on you definition of desirable. If the point is that the current enabled us to be existing, then any other state is less desirable simply by the fact that isn't the one that made us existing.
1718627440··on Nature's capacity to 'bounce back' when species are lost is overestimated: study
The most detailed and correct map is the territory itself.
1718627440··on What's Earth's dominant species by mass?
> then I don’t see what will stop them from continuing to spread

Speed of light/information, and physical matter.

1718627440··on What's Earth's dominant species by mass?
All the forests in central europe are artificially planted or influenced after the middle ages. Whole of Italy used to be full of woods before the Romans.
1718627440··on Tell HN: GitHub refuses to remove cracked copies of my software after a month
Which to be fair, would maybe actually work, and there are political positions that want to achieve such an economic system. Not that I would necessarily agree with them.
← PreviousPage 2 of 34Next →