pocmatos
2018-3-29 08:46:11

Due to #2019 (https://github.com/racket/racket/issues/2019) I am having issues doing some proper profiling of my program, which uses places. Is there a way to disable places so that it uses threads instead and then raco profile can do it’s job?


pocmatos
2018-3-29 09:08:51

Also, while trying to build racket I always get: mprotect failed: 7fa5ac03c000, 16384, 1, 12 Does anyone know what this relates to?


pocmatos
2018-3-29 09:23:49

— ah now I get it… that’s racket crashing


jerome.martin.dev
2018-3-29 13:33:01

Hello there! Quick question: When I have a file with an s-expression list inside (no #lang whatsoever), and I use read on it to instantiate the list. Is it safe (from an injection point of view)? Is there a better way to parse “data only” s-expressions that are not meant to be evaluated?


jerome.martin.dev
2018-3-29 13:33:36

Should I use some kind of sandbox?


jerome.martin.dev
2018-3-29 13:45:40

I’d like to make a reader that accepts deep nested lists of symbols, strings, numbers and all primitive types, but cannot use any syntax nor procedures. Some kind of json data, but in s-expr form.


ryanc
2018-3-29 13:48:13

@jerome.martin.dev I think if read-accept-reader is #f (the default, I think) then reading is safe


ryanc
2018-3-29 13:48:56

see also call-with-default-reading-parameterization


jerome.martin.dev
2018-3-29 13:53:45

@ryanc Thanks!


jerome.martin.dev
2018-3-29 14:05:07

Now I’m undecided whether I call my files “foo.sexp” or “foo.sex”


githree
2018-3-29 14:16:12

try “bar.sex” :slightly_smiling_face:


cfinegan
2018-3-29 15:29:44

For anyone interested in using Racket with atom, I’m looking for guinea pigs for atom-ide-racket. It’s been tested pretty much only on ubuntu 16.04. Installation should be simple, just apm install atom-ide-racket. https://atom.io/packages/atom-ide-racket