News for hackers. Stuff that matters.
Re:Python's Preprocessor – Pydong by SkiFire13 on Thursday August 22, 2024 @05:04PM (#41324385)
Reminds me of `break rust;` causing the Rust compiler to emit an internal compiler error. I wonder which other languages have similar easter eggs.
Re:Python's Preprocessor – Pydong by bch on Thursday August 22, 2024 @11:53PM (#41326055)
Tcl really became “Enterprise-ready”[0] at this time.

[0] https://stackoverflow.com/a/1026619

Re:Python's Preprocessor – Pydong by shakna on Friday August 23, 2024 @06:25AM (#41327762)
> The Stardate time format had nothing to do with Sun. I added it to Tcl while working at Scriptics, as an easter egg for the then-upcoming Tcl2K Conference. One of the conference events was a competition to implement a standard-to-stardate conversion utility, using an arcane formula. Only one guy entered the event. He spent a couple hours agonizing over the implementation (as he was looking for a job at Scriptics, he was eager to impress) only to have the easter egg revealed afterwards. Of course he won the competition anyway. And he got the job, too. – Eric Melski
Re:Python's Preprocessor – Pydong by hsfzxjy on Friday August 23, 2024 @12:03AM (#41326090)
> `break rust;` causing the Rust compiler to emit an internal compiler error

Is this real?

Re:Python's Preprocessor – Pydong by xcdzvyn on Friday August 23, 2024 @01:00AM (#41326305)
https://play.rust-lang.org/?version=stable&mode=debug&editio...

> error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?

> --> src/main.rs:2:5

> |

> 2 | break rust;

> | ^^^^^^^^^^

> |

> = note: the compiler expectedly panicked. this is a feature.

> = note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-...

Re:Python's Preprocessor – Pydong by SkiFire13 on Friday August 23, 2024 @01:45AM (#41326460)
Re:Python's Preprocessor – Pydong by pjmlp on Friday August 23, 2024 @02:32AM (#41326588)
> error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?

Lovely, and the word game is just great.

Re:Python's Preprocessor – Pydong by TheMatten on Friday August 23, 2024 @04:24AM (#41327171)
This one in Haskell is coincidental, but used as a joke:

``` import Data.Function

main = do let it = fix error print it ```

Re:Python's Preprocessor – Pydong by notpushkin on Friday August 23, 2024 @06:49AM (#41327868)
On HN, you can add code blocks by indenting with 2 spaces:

  import Data.Function

  main = do
    let it = fix error
    print it
Re:Python's Preprocessor – Pydong by sans_souse on Friday August 23, 2024 @07:10AM (#41327964)
If NLP counts, try xyzzy in gemini.google.com