sorawee
2020-9-8 09:54:54

Here’s a random, insane idea: Quickscript competition, but for Racket documentation (or even code examples).


laurent.orseau
2020-9-8 09:56:50

You mean writing quickscripts to help generating doc?


laurent.orseau
2020-9-8 09:57:26

Like select a contract, click on the script, it generates the defproc for you?


sorawee
2020-9-8 09:57:38

I meant a competition in the same manner as Quickscript competition, but no, not related to Quickscript.


laurent.orseau
2020-9-8 09:58:01

Haha, so a Documentation Competition :slightly_smiling_face: @spdegabrielle!


laurent.orseau
2020-9-8 09:58:37

(though I do like the idea of using quickscripts to partly automate the process :stuck_out_tongue: )


laurent.orseau
2020-9-8 10:08:45

@sorawee I think that’s a great idea. The docs are excellent most of the time, but can really need more examples at times. The difficult part to make sure that a large number of people can participate, which means most importantly making doc pull requests extremely easy to make.


spdegabrielle
2020-9-8 10:38:40

@sorawee it is a great idea. I’m all competitioned out at the moment. FWIW there was a #HaskellDocs initiative launched recently https://twitter.com/TechnoEmpress/status/1301133605675184128?s=20


spdegabrielle
2020-9-8 10:39:49

I’m not saying join #HaskellDocs - just that this is another approach.


mabusakib
2020-9-8 15:47:27

@mabusakib has joined the channel


soegaard2
2020-9-8 17:34:50

Tip of the day: #i1/6 is an alternative way of writing the literal 0.16666666666666666


badkins
2020-9-8 17:43:26

(no excuse for just-deleted comment, I’m even drinking coffee right now :) )


soegaard2
2020-9-8 17:43:45

Just for context, 1/6. is not a literal.


sorawee
2020-9-8 17:44:49

Huh? It’s not?


sorawee
2020-9-8 17:45:26

> '1/6 1/6 Looks self-quoted to me


soegaard2
2020-9-8 17:45:37

Note the period.


soegaard2
2020-9-8 17:45:50

1/6. is an identifier (I believe)


sorawee
2020-9-8 17:45:54

Ohh


laurent.orseau
2020-9-8 17:46:28

(* 6 #i1/6) -> 1.0 So it’s really the reader (as expected)


sorawee
2020-9-8 17:47:08

(define π #i3)


laurent.orseau
2020-9-8 17:48:18

(define π :pie:)


laurent.orseau
2020-9-8 17:49:04

or the more classic (define π #i22/7)


soegaard2
2020-9-8 17:49:17

Obligatory pi quote coming up:


soegaard2
2020-9-8 17:49:30

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change. -- FORTRAN manual for Xerox Computers


laurent.orseau
2020-9-8 17:50:37

This is beautiful. Written by true physicists I assume.


sorawee
2020-9-8 17:55:01

According to wikiquote (https://en.wikiquote.org/wiki/Fortran#Misquoted), this is a misquote.

> Although this quote appears in different sources[1][2], the real manual does not mention the possibility of changing pi. The real quote is …… This also simplifies modifying the program, if a more accurate value is required.


soegaard2
2020-9-8 17:59:28

Thanks for the link. It links to the actual FORTRAN Manual. The first example is:


soegaard2
2020-9-8 17:59:41

sorawee
2020-9-8 18:03:48

coding form!


sorawee
2020-9-8 18:05:04

I’m curious why statement numbers are not aligned


soegaard2
2020-9-8 18:29:29

Good question.



soegaard2
2020-9-8 18:34:55

Let’s see if anyone answers.


spdegabrielle
2020-9-8 20:49:55

72 columns! Bingo!


spdegabrielle
2020-9-8 20:50:50

I just heard this was the origin of the 72 col line length - I have never seen it.


laurent.orseau
2020-9-8 20:53:13

This seems like a very good justification that still applies today :stuck_out_tongue:


sorawee
2020-9-8 21:04:34

ahem

People used to recommend a line width of 80 or 72 column. The number is a historical artifact. It is also a good number for several different reasons: printing code in text mode, displaying code at reasonable font sizes, comparing several different pieces of code on a monitor, and possibly more. So age doesn’t make it incorrect. We regularly read code on monitors that accommodate close to 250 columns, and on occasion, our monitors are even wider. It is time to allow for somewhat more width in exchange for meaningful identifiers.

/ahem


spdegabrielle
2020-9-8 21:21:30

I’m sure I remember reading there were equivalent algorithms to diff trees, and I’m fascinated by the idea of projectional editing. I have auto brackets turned on in DrRacket but my edits don’t always leave me with a valid tree. Also I like the idea that we might be able to make coding easier for people who are sight impaired or sightless.


spdegabrielle
2020-9-8 21:34:51

I’m sure none of this is new; but we have translated interface, why not let Chinese speakers see(定义 where I see (define ?


gknauth
2020-9-8 21:40:24

This reminds me of a project I worked on for Los Alamos 25–30 years ago. I was told there was a team of ~30 PhDs who would code-review a program very very carefully. All I was told was, “This program must never be run, but if it is run, it must run perfectly.” The code review took years, so many years that people on the team rotated constantly, and some died. So the idea was to speed up the code review. I built a tool that instrumented a compiler [GCC] to put everything into a database. That way everyone could look at the code they way they wanted to see it, adjusting colors, etc., renaming things to their preference, while not bothering anyone else’s. It also let them put in annotations that others could read, and mark sections as completed, in progress, approved by so-and-so, etc.


gregor.kiczales
2020-9-8 21:57:27

Is anyone making plt-logo masks?


d_run
2020-9-8 22:08:13

Can Racket CS compile to ARM 64 yet or just 32?


gknauth
2020-9-8 22:12:15

I would :heart: a :racket-flat: mask!!


samdphillips
2020-9-8 22:41:05

I half heartedly looked to see if anyone would do custom print masks a couple months ago. I didn’t really find anything economical for a small run iirc.


spdegabrielle
2020-9-8 23:08:55

Halloween?


greg
2020-9-8 23:12:48

Obligatory mention of the Indiana Pi Bill https://en.wikipedia.org/wiki/Indiana_Pi_Bill


spdegabrielle
2020-9-8 23:13:47

I’m Australian


spdegabrielle
2020-9-8 23:14:25

We didn’t do Halloween when I was young


greg
2020-9-8 23:15:23

Before anyone gets all “ha ha the olds”, may I point out current clamors to give law enforcement an encryption back door.


samdphillips
2020-9-8 23:16:49

covid masks


spdegabrielle
2020-9-8 23:36:58

@d_run I think @jesse and @pocmatos have been working on arm64


samth
2020-9-8 23:43:18

It works on arm64 now


samth
2020-9-8 23:43:33

@d_run


samth
2020-9-8 23:43:48

See the 7.8 release notes


d_run
2020-9-9 00:23:07

amaze


spdegabrielle
2020-9-9 00:33:30

I’m sure none of this is new.


rokitna
2020-9-9 02:17:26

Oh, lol, I was also thinking of Halloween masks for some reason. :)


pocmatos
2020-9-9 04:32:00

@spdegabrielle @d_run Matthew stepped in and ended up doing all the work. :slightly_smiling_face: