pocmatos
2017-1-25 08:25:24

Morning all. Wondering what’s the racket way of doing things. How would you define internal helper functions inside a define? Would you use let, letrec or yet another define?


samth
2017-1-25 10:59:07

@pocmatos I’d use another define


pocmatos
2017-1-25 11:01:26

@samth any reason for that? Is this just aesthetic preference, performance reasons or the fact that let and friends cause quite a large indentation?


samth
2017-1-25 11:26:23

both aesthetics and indentation



pocmatos
2017-1-25 11:49:22

@leafac missed that, thanks.


leafac
2017-1-25 11:50:43

Sure :slightly_smiling_face:


nlightnfotis
2017-1-25 11:51:43

@nlightnfotis has joined the channel


nlightnfotis
2017-1-25 11:54:02

Hello


nlightnfotis
2017-1-25 12:54:17

Guys do you know any other channels except this one and functional programming, that are related to PLT and language design?


eeide
2017-1-25 16:02:41

“Channel?” Well, there’s the racket-users mailing list.


dstorrs
2017-1-25 16:28:01

Thanks for the pointer to the ‘Choosing the Right Construct’ @leafac.


dstorrs
2017-1-25 16:28:20

Question about that — it says “the identity function is ‘values’” What’s wrong with ‘identity’?


leafac
2017-1-25 16:42:36

Nothing wrong with it, but they are different. While “values” is available in “racket/base”, “identity” is part of “racket/function”, which must be explicitly imported in a “#lang racket/base” program. Also, “(values 1 2)” returns two values, and “(identity 1 2)” is an arity mismatch.


samth
2017-1-25 16:54:14

@ben since people seem interested in paying for stickers etc, you might look at https://devswag.com/pages/selling-on-devswag


leif
2017-1-25 17:29:50

@tonyg Are you coming in?


samth
2017-1-25 18:08:16

Has anyone attempted to use mmap via the FFI?


thinkmoore
2017-1-25 18:21:34

samth: I vaguely recall having done so


samth
2017-1-25 18:21:44

ooh, if you have code that would be great


samth
2017-1-25 18:21:54

@thinkmoore my attempts so far keep segfaulting


thinkmoore
2017-1-25 18:22:01

i’m grepping now… might be mis-remembering


thinkmoore
2017-1-25 18:23:56

ah, looks like I was mmap’ing from the C side of that particular project


samth
2017-1-25 18:24:03

too bad


leif
2017-1-25 18:46:57

@stamourv Would it be possible to get the 2016 RacketCon page put at: http://con.racket-lang.org/2016


leif
2017-1-25 18:47:35

(I noticed that if I go there right now I get a 404 and an uncaught exception error: > ((uncaught-exception-handler) (*(+(*)(*(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*))))(+(*)(*)(*)(*))))


bmastenbrook
2017-1-25 18:47:54

that’s just an easter egg


leif
2017-1-25 18:48:08

bmastenbrook Well ya, I figured that much.


leif
2017-1-25 18:48:30

But that URL should point to the RacketCon webpage for 2016.


leif
2017-1-25 18:48:44

Even if at the moment its a redirect to the RacketCon URL


leif
2017-1-25 18:48:49

erm, racketcon homepage


stamourv
2017-1-25 21:55:50

@leif: No cycles ATM. Want to do it?


leif
2017-1-25 22:31:55

@stamourv I’m happy to do it, I just need to make sure I wouldn’t be stepping on your toes. :wink:


notjack
2017-1-25 23:33:40

@stamourv Do you think it would be a good idea to remark on new packages added to the package catalog in the racket release announcement? It’s not really directly related to the release, but often there’s lots of new Racket stuff that occurs outside the main distribution and it’s difficult to find out about it.


stamourv
2017-1-26 01:00:44

@notjack: Yeah, that’s an idea. Package discoverability could use some help.


notjack
2017-1-26 01:16:23

Using the blog in general to promote packages would probably help too


stamourv
2017-1-26 01:17:05

@notjack: Good idea also! I nominate you. :)


stamourv
2017-1-26 01:17:23

Just submit PRs to the racket-lang-org repo, and I’ll upload your posts.


notjack
2017-1-26 01:17:33

is that where blog posts go? :p


stamourv
2017-1-26 01:17:51

Yes. There’s a frog insance in the blog directory.


notjack
2017-1-26 01:18:27

is that because matthew redid the blog? or was it always done via github PRs?


stamourv
2017-1-26 01:19:04

That’s new from MB’s blog redesign. Was some blogger thing before.


notjack
2017-1-26 01:19:06

I see the Pollen code, so I’m guessing this is a fairly new setup :P


stamourv
2017-1-26 01:19:09

Much better now!


stamourv
2017-1-26 01:19:18

The pollen code is for the main page.


stamourv
2017-1-26 01:19:31

Look in the blog directory. There should be markdown files in the _posts dir.


stamourv
2017-1-26 01:19:41

And from there you can use raco frog, etc.


notjack
2017-1-26 01:20:09

there’s no _posts dir but there’s a _src/posts dir, that looks like what I want


stamourv
2017-1-26 01:20:19

Right, that’s the one.


stamourv
2017-1-26 01:20:24

Was going from memory. :)


notjack
2017-1-26 01:21:01

Neat :) a semi-regular package spotlight post series of some sort would be pretty cool


stamourv
2017-1-26 01:21:16

Absolutely!


stamourv
2017-1-26 01:21:30

When should I expect the first one? ;)


notjack
2017-1-26 01:22:12

oh no, I’m not giving you a deadline yet :wink: