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?
Also, while trying to build racket I always get: mprotect failed: 7fa5ac03c000, 16384, 1, 12
Does anyone know what this relates to?
— ah now I get it… that’s racket crashing
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?
Should I use some kind of sandbox?
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.
@jerome.martin.dev I think if read-accept-reader
is #f
(the default, I think) then read
ing is safe
see also call-with-default-reading-parameterization
@ryanc Thanks!
Now I’m undecided whether I call my files “foo.sexp” or “foo.sex”
try “bar.sex” :slightly_smiling_face:
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