laurent.orseau
2020-8-27 09:02:10

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


laurent.orseau
2020-8-27 09:04:58

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


jcoo092
2020-8-27 09:05:19

All of the hope!


sorawee
2020-8-27 09:25:13

I shall name it the hope combinator.


laurent.orseau
2020-8-27 09:31:04

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


jcoo092
2020-8-27 09:36:01

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


laurent.orseau
2020-8-27 09:42:16

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


spdegabrielle
2020-8-27 09:59:04

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


spdegabrielle
2020-8-27 09:59:33

:keyboard:


ryanc
2020-8-27 11:19:32

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


evyatar2013
2020-8-27 12:16:05

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?


evyatar2013
2020-8-27 12:16:53

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


evyatar2013
2020-8-27 12:17:22

this is from the website


laurent.orseau
2020-8-27 12:25:34

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


acorso522
2020-8-27 13:00:38

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.


me1419
2020-8-27 13:04:58

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:


me1419
2020-8-27 13:09:50

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


samdphillips
2020-8-27 16:26:13

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


samdphillips
2020-8-27 16:27:54

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


massung
2020-8-27 16:45:26

> 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.”



spdegabrielle
2020-8-27 18:42:04

Never challenge a 10yo on the facts.


jaz
2020-8-27 19:30:44

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.


jaz
2020-8-27 20:02:30

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.


samth
2020-8-27 20:03:10

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


jaz
2020-8-27 20:03:54

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.


jaz
2020-8-27 20:08:35

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


jaz
2020-8-27 20:10:04

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


samth
2020-8-27 20:10:36

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


jaz
2020-8-27 20:11:15

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


spdegabrielle
2020-8-27 22:35:11

sorawee
2020-8-27 22:37:15

Seems like you could benefit from using some abstraction.


spdegabrielle
2020-8-27 22:41:34

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


spdegabrielle
2020-8-27 22:44:17

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


samdphillips
2020-8-27 22:44:37

The next expander will be based on Spreadsheet technology.


massung
2020-8-27 22:44:49

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))))) ?


spdegabrielle
2020-8-27 22:49:19

@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.


samdphillips
2020-8-27 22:49:28

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


samdphillips
2020-8-27 22:49:44

I think…


massung
2020-8-27 22:49:59

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


spdegabrielle
2020-8-27 22:51:10

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


massung
2020-8-27 22:51:28

lol


spdegabrielle
2020-8-27 22:56:04

@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
2020-8-27 22:59:17

@liquidcloud9 has joined the channel


spdegabrielle
2020-8-27 23:29:27

@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)


samdphillips
2020-8-27 23:40:20

I believe it.


ruyvalle
2020-8-28 01:50:45

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


jcoo092
2020-8-28 01:54:22

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) ¯_(ツ)_/¯


wanpeebaw
2020-8-28 02:52:41

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