dmitryhertz
2018-4-3 08:48:31

Hello everyone! I’ve a question about syntax-case


dmitryhertz
2018-4-3 08:49:12

Is it possible to use pattern (or (_ #f) ())? Ordinary match allows it.


jerome.martin.dev
2018-4-3 08:53:43

I guess you can have this with a syntax-parse and ~or. But with syntax-case I don’t know.


dmitryhertz
2018-4-3 08:54:15

@jerome.martin.dev exactly! I’ll try it now! Thank you!:+1:


dmitryhertz
2018-4-3 08:57:13

@jerome.martin.dev it works as expected!


jerome.martin.dev
2018-4-3 09:05:09

Great :smile:


spdegabrielle
2018-4-3 15:12:56

Hi,


spdegabrielle
2018-4-3 15:14:08

I thought I’d try the new nightly builds of Racket; Welcome to DrRacket, version 6.90.0.24—2018–04–03(a4eddbd63d/a) [3m]. Language: racket, with debugging and profiling [custom]; memory limit: 128 MB. >


spdegabrielle
2018-4-3 15:15:45

looks good, but I’ve noticed that Dr Racket 6.90.0.24 doesn’t launch from the MacOS GUI(finder), only from the command line.


spdegabrielle
2018-4-3 15:16:59

Process: DrRacket [5664] Path: /private/var/folders/*/DrRacket.app/Contents/MacOS/DrRacket Identifier: org.racket-lang.DrRacket Version: 6.90.0.24 (6.90.0.24) Code Type: X86–64 (Native) Parent Process: ??? [1] Responsible: DrRacket [5664] User ID: 502

Date/Time: 2018–04–03 16:07:34.821 +0100 OS Version: Mac OS X 10.13.3 (17D102) Report Version: 12 Anonymous UUID: 818EA46D-C579–9E4C–5EAF–344B941ADCEB

Sleep/Wake UUID: 512F92B9-DBE0–4607–8A32-F19D3028C0CC

Time Awake Since Boot: 78000 seconds Time Since Wake: 2200 seconds

System Integrity Protection: enabled

Notes: Translocated Process

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x1] Library missing

Application Specific Information: dyld: launch, loading dependent libraries

Dyld Error Message: Library not loaded: @executable_path/../../../lib/Racket.framework/Versions/6.90.0.24_3m/Racket Referenced from: /private/var/folders/*/DrRacket.app/Contents/MacOS/DrRacket Reason: image not found

Binary Images: 0x1017c5000 – 0x1017cdfff +org.racket-lang.DrRacket (6.90.0.24 – 6.90.0.24) <59C1FB4D–0DD4–30A0-A524–5716A7BC6028> /var/folders/*/DrRacket.app/Contents/MacOS/DrRacket 0x104c28000 – 0x104c7298f dyld (519.2.2) <6695F30B–4E88–3C0B–9867–7D738C44A3E6> /usr/lib/dyld

Model: MacBookPro9,2, BootROM …


andre.kuhlenschmidt
2018-4-3 16:58:40

@andre.kuhlenschmidt has joined the channel


plotnus
2018-4-3 19:11:15

Is there a way to apply a function with n-parameters to n-lists such that each function call would map the n-th argument to the nth list?

A simple example: (the-thing-im-looking-for (lambda (a b c) (+ a b c)) '(1 2 3) '(2 3 4) '(1 1 2)) would yield '(4 6 9)


dan
2018-4-3 19:19:26

@plotnus I think map will do what you want


dan
2018-4-3 19:20:11

This gives the output you expect (map (lambda (a b c) (+ a b c)) '(1 2 3) '(2 3 4) '(1 1 2))


plotnus
2018-4-3 19:27:13

@dan Yes that does it. Thank you Dan! Very cool feature.


leif
2018-4-3 20:19:26

Is the current build of Racket failing for anyone else?


leif
2018-4-3 20:19:59

leif
2018-4-3 20:20:01

leif
2018-4-3 20:31:58

Odd… Well doing a git clean -fxd seems to have cleared it up. Oh well. :disappointed:


shu--hung
2018-4-3 21:09:01

@leif I had that last time I did a git pull, and I had to git clean too


lexi.lambda
2018-4-3 21:10:04

I nuked racket/src/build, which is a little less drastic.


leif
2018-4-3 21:24:02

@shu—hung Sad


leif
2018-4-3 21:24:11

@lexi.lambda Mmm…okay. I’ll give that a shot next time, thanks.


mflatt
2018-4-4 02:52:12

@spdegabrielle Try dragging “DrRacket.app” out of its encloding folder (command-click if it’s in “Applications”) and then drag it back in place. The problem is most likely that snapshots are not signed, so the executable is sandboxed by the OS in a way that doesn’t let it find the Racket framework.