GregBuchholz

Joined 16 years ago

Karma
1,260
Submissions
491
Member since
Oct 20
https://web.archive.org/web/20120322051451/http://kerneltrap.org/blog/6714
View on Hacker News

Recent submissions

Comment · 1 month ago
Comment · 1 month ago
Is there any context where it makes sense to have fractional pixels? Like millipixels, micropixels, nanopixels, etc.? There is of course sub-pixel text rendering; does anyone refer to numerical fractional pixels in that field (333.33 mpx)?
Comment · 1 month ago
Comment · 2 months ago
Comment · 2 months ago
Well, to be fair, many/most programs aren't using complex numbers, or concerned with inexact vs. exact numbers, significant digits, or really even scientific notation.
Comment · 2 months ago
Looks like fweimer is correct for scheme. I admit to being very surprised. Here is the verbiage from various rXrs:

r3rs, r4rs & r5rs (section 4.2.6):

https://standards.scheme.org/official/r3rs.pdf

https://standards.scheme.org/official/r4rs.pdf

https://conservatory.scheme.org/schemers/Documents/Standards...

"If a comma appears followed immediately by an at- sign (@), then the following expression must evaluate to a list;"

r6rs (section 11.17):

https://standards.scheme.org/official/r6rs.pdf

"If an (unquote-splicing 〈expression〉 . . . ) form appears inside a〈qq template〉, then the〈expression〉s must evaluate to lists;"

r7rs (4.2.8):

https://standards.scheme.org/official/r7rs.pdf

"If a comma appears followed without intervening whitespace by a commercial at-sign (@), then it is an error if the following expression does not evaluate to a list;"

Comment · 2 months ago
Comment · 2 months ago
Is Prolog bicameral? Because it has a `read` predicate? Is bicameral then just a matter of implementing a `read` function which returns a tree of tokens, which you could implement for C or Python? Which makes bicamerality a property of a library rather than a property of the language?
Comment · 2 months ago
I tried:

  #lang racket/base
  (let ((a '#0=(0 . #0#)))
    (display (car a)))
...over at

https://onecompiler.com/racket

...and it didn't compile, complaining:

  read-syntax: `#...=` forms not  enabled for `read-syntax` mode
...maybe there is a switch needed to enable it?
Comment · 2 months ago
It looks like Racket nerfed the shared-structure / "Datum Labels" for circular lists and the like (I see it is still in section 2.4 of r7rs):

  '#0=(0 . #0#)
...and I should have included `#|block comments|#`, datum `#;comments`, and probably `|symbols with spaces|`.

  (let ((|1 + 2| (+ 1 2)))
    (display |1 + 2|))
Comment · 2 months ago
Comment · 2 months ago
Comment · 2 months ago
> no special syntax for anything.

    (list '(1. . #\#)
          -5/6+7.s-8i
          `(1 ,@2)
          1@1           ;hmmm, no unquote splicing comma ;-)
          10#           ;surprised?
          (list #i+1 +1i 1+i) ;complicated or complex?
          #e-1e10i     ;Old MacDonald?
          "(* 9 10)" #())
Comment · 4 years ago
Comment · 4 years ago
Here are some of the things I use to increase the range of programs for which I can use vi keybindings:

* vscodevim extension for Vscode

* "set -o vi" in Bash

* Vim Vixen plugin for Firefox

* you can use ctrl-alt-j in gdb. And that might (should?) work in other programs which use GNU Readline to get vi keybindings. The only thing I miss with the vi bindings in bash/readline is "ge/gE" from vim (move backwards to the end of the word).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton