
((λ (hope) (hope hope))
(λ (hope) (hope hope)))
(don’t run this :wink: )

(but for those who don’t know about this, try this one instead: ((λ (hope) (hope hope))
(λ (hope) (display "hope") (read-line) (hope hope)))
)

All of the hope!

I shall name it the hope combinator.

It just occurred to me that we can actually write ((λ (λ) (λ λ)) (λ (λ) (λ λ)))
in Racket (and Scheme in general?)

Just because you can, doesn’t mean you should :stuck_out_tongue:

I think that premise broke a long time ago :wink:

@joel that’s not cheap! I’m jealous:grinning:

:keyboard:

My favorite brain-melting infinite loop in Scheme: ((call/cc call/cc) (call/cc call/cc))
.

so…. I’m here in #random for the serious questions :wink: I noticed the Dr.Racket screenshot on http://racket-lang.org\|racket-lang.org (really digging the new layout btw) is full dark mode, I hunted in the preferences and couldn’t find the appropriate check box. Will someone save my eyeballs and point me to the right configuration?

notice how I can change the text editor to dark mode, but not Dr.Racket itself

this is from the website

The rest of the dark mode (the GUI widgets) is handled not by DrRacket but by the window manager of your OS, so you’ll have to change the preferences there

Not sure the best place to post this, but the link for server racket on https://racket-lang.org/books.html points to http rather than https, and thus doesn’t resolve for me.

if I’m not mistaken, the source for that page looks like is https://github.com/racket/racket-lang-org/blob/master/www/books.html.pm
I would open an issue on GH or a PR, depending on whichever’s faster :smile:

some links seem to already have been fixed https://github.com/racket/racket-lang-org/pull/142

I used to have one of those, but it’s gotten misplaced.

This reminds me that buffalo 8(?) times is a grammatically correct sentence in English. (At least according to my 10yo)

> This reminds me that buffalo 8(?) times is a grammatically correct sentence in English Not sure about 8 times, but yes, because “buffalo” is also a verb meaning “to frighten”. So “Buffalo buffalo buffalo buffalo.” Can mean “A herd of buffalo in Buffalo, NY frighten other buffalo.”


Never challenge a 10yo on the facts.

That relative clause at the start is pretty questionable. It’s common in English to say things like “The eggs I ate yesterday were bad,” where the relative pronoun is omitted, but not when the omitted pronoun would be nominative. I mean, try removing the relative pronoun in a sentence like, “The man [who] ate the rotten eggs got sick.” No one talks like that, except characters in a David Mamet screenplay. Or David Milch. A David, at any rate.

Oh crap, I am dead wrong — not about English but about the structure of the buffalo sentence. The omitted relative pronoun here isn’t nominative.

It’s omitting the “that” after the first two words that’s weird

No — that’s what I originally thought, but I actually think the sentence structure is fine, except maybe the lack of a definite article at the very start of the sentence.

No, even the article isn’t necessary. The sentence structure is like: “Eggs sick chickens lay sicken healthy people.”

Well, okay, the first noun phrase needs an adjective, so: “Large eggs sick chickens lay sicken healthy people.”

Yeah, with the adjective it’s less clear where the clauses are but it does seem ok

Yeah, the addition of the adjective really does make the omission dicier, I think.

I wasn’t happy just overriding tab https://gist.github.com/spdegabrielle/6497fe877d768e61c78d8f41a9f4bffa

Seems like you could benefit from using some abstraction.

Have you met my friend “generating-code-with-spreadsheets”?

I don’t think it can be done in#lang
‘Add user defined keybindings’. It would have to be a plugin.

The next expander will be based on Spreadsheet technology.

It’s not possible to just do: (define (make-binding key [ins #f])
(keybinding key (λ (editor evt)
(send editor auto-complete)
(when ins
(send editor insert ins)))))
?

@massung I don’t think you can do that in the #lang s-exp framework/keybinding-lang
language, but I’ll admit I haven’t checked.

Looking at the lang (https://github.com/racket/gui/blob/master/gui-lib/framework/keybinding-lang.rkt) you should be able to use define

I think…

It compiles for me fine in 7.8. Not sure if it works though (I’ve never tried whatever it is being done).

@massung it is triggering DrRacket autocomplete on every key press listed

lol

@samdphillips I’ll have to try that - it also (unsurprisingly) messes up the editor redraw, so I gotta address that too:stuck_out_tongue_closed_eyes:

@liquidcloud9 has joined the channel

@sorawee @samdphillips I’ve seen enterprise code generated in excel a number of times. I don’t think code generation with spreadsheets is rare in the wild. (But i May be wrong)

I believe it.

sorry if this is a little dark for some, but “doesn’t mean you should, just because you can” is in the lyrics: https://www.youtube.com/watch?v=X29mSgD8H30

Well, this is what I was listening to when I received that: https://uniqueleaderrecords.bandcamp.com/album/where-only-gods-may-tread (not really a big fan, it just came up in my feed) ¯_(ツ)_/¯

@spdegabrielle > code generation from spreadsheet I’v done once…