sorawee
2020-6-23 07:15:26

What makes “Last updated” in https://pkgs.racket-lang.org/ changes? A lot of packages are labeled “new” because “Last updated” is bumped, even though they are not updated for several years now. These are mostly failing packages as far as I can see.


readyready15728
2020-6-23 08:20:46

@readyready15728 has joined the channel


readyready15728
2020-6-23 08:25:05

Just learning Racket. Curious about the following

(filter (lambda (i) (i . < . 3)) '(1 2 3)) Why is the lambda written like that? Is it to support algebraic syntax?


readyready15728
2020-6-23 08:25:38

Every other Lisp I’ve ever seen only had the option of (< i 3)


soegaard2
2020-6-23 08:45:57

@readyready15728 The notation (i . < . 3) is rewritten by the reader into (< i 3). It was added in an attempt to make certain infix expressions easier to read. That said - I am not fond of the idea and prefer (< i 3) .



soegaard2
2020-6-23 08:47:46

spdegabrielle
2020-6-23 09:34:55

Quick survey; which platform do you run racket on. vote with reactions, comments in thread.


jcoo092
2020-6-23 09:38:15

Since I’m normally a Windows user, I default to doing things on Windows where possible. For a few reasons, however, I have been using Racket on Linux of late.

(Those reasons are mostly to do with trying to ensure that others can reproduce my work if they choose to, and moreover that other languages I want to investigate/compare are only available on Linux - this relates to https://github.com/jcoo092/CML_benchmarks)



laurent.orseau
2020-6-23 09:56:40

won’t that break, like, everything?


spdegabrielle
2020-6-23 09:56:55

Thanks @jcoo092 have you run racket under WSL/WSL2?


jcoo092
2020-6-23 09:59:24

Not yet, no. When I tried to install WSL2 recently, it prevented the VM that I had been using from running (seemingly a Hyper-Visor vs VirtualBox conflict)… So I ended up reverting my version of Windows (I had just updated immediately prior to installing WSL2), and haven’t yet been brave enough to try to installing WSL2 again as of yet.


samth
2020-6-23 10:34:17

I think “yes” is the short answer


soegaard2
2020-6-23 11:15:41

Rereading the quote. Is the cache only for “system-provided” libraries (aka from Apple)?


soegaard2
2020-6-23 11:26:17

Reading up on this: It seems this cache has been in place for iOS for a while: https://iphonedevwiki.net/index.php/Dyld_shared_cache


ash.drone
2020-6-23 12:04:12

@ash.drone has joined the channel


ash.drone
2020-6-23 12:08:23

Hi everyone, quick question: is there an autoformatter for Scribble that would keep line lengths in check?


mflatt
2020-6-23 12:08:29

A recent improvement corrected the “last updated” bump for most failing packages, at least going forward: https://github.com/racket/pkg-index/commit/3b94b3224ace8f6d5e7c5a57107ea156aa7a8260 It looks like there may still be something to improve for “formica” and maybe others.


sorawee
2020-6-23 12:19:30

Ah, thanks for the info!


alexharsanyi
2020-6-23 12:21:28

Do you mean an autoformatter that wrapps the Scribble source lines ?


alexharsanyi
2020-6-23 12:21:37

inside a text editor?


ash.drone
2020-6-23 12:22:43

Yes, autoformatter that wraps lines


ash.drone
2020-6-23 12:22:57

Not necessarily from text editor, CLI would be fine too


alexharsanyi
2020-6-23 12:23:23

does emacs count as a text editor?


alexharsanyi
2020-6-23 12:24:07

… i have witten a scribble mode which does auto formatting when you press Alt-Q


ash.drone
2020-6-23 12:25:46

Sure! Is your mode publically available?


alexharsanyi
2020-6-23 12:29:31

It is not publicly available. I announced it a while ago, but there was no interest in this mode. Anyway, here is a copy: https://gist.github.com/alex-hhh/a7188c3ed9db18a254c5bb7a48dc8ae6, you’ll need to have racket-mode installed as well. It is not perfect, I only use it myself for the Scribble documentation for my packages.


ash.drone
2020-6-23 12:33:16

Thanks a ton!


laurent.orseau
2020-6-23 12:37:25

It’s the kind of thing where I think “ha, that’s interesting, I’ll have to check it out later, when I’m back to using scribble”, then forget all about it barely a fortnight later…


soegaard2
2020-6-23 12:43:28

@alexharsanyi Looks interesting. Does it switch back and forth between scribble and racket mode for snippets of racket code?


laurent.orseau
2020-6-23 12:44:10

Would you be willing to change license of this file to Apache 2 by any chance?


alexharsanyi
2020-6-23 12:46:17

@soegaard2 it attempts to use racket mode for indenting racket code, but that part is not working correctly, I will fix it if I have a need for it.


alexharsanyi
2020-6-23 12:47:23

@laurent.orseau it makes no sense to change the license — this is an emacs source file, calling into other Emacs functions which are licensed as GPL.


laurent.orseau
2020-6-23 12:48:47

I was thinking of porting it to Quickscript for DrRacket, and put it in quickscript-extra (apache 2)


laurent.orseau
2020-6-23 12:50:27

But maybe it’s too intimate with emacs to be ported, even partially though, in which case never mind.


alexharsanyi
2020-6-23 12:50:31

not sure what you want to port, but if you are thinking about the code formatting part, that part is deep inside Emacs. This file only makes sure it calculates the correct delimiters (again using Emacs functionality) and passes the code delimiters to the Emacs formatting facilities.


laurent.orseau
2020-6-23 12:50:57

Ok, then forget about it.


alexharsanyi
2020-6-23 12:51:09

welcome to Emacs


ash.drone
2020-6-23 13:23:15

Also, more general question - does anyone use Scribble/Racket for personal knowledge management in the spirit of org-mode or Roam Research? I would really love to read about that if someone already happens to be looking into it


ryanc
2020-6-23 13:51:58

I’m not sure this is actually that big a deal. As far as I can tell, Apple is pretty non-committal about the standard search path for dynamic libraries — I don’t think I was able to find it in any official documentation last time I tried looking. And if you don’t know the OS’s search path, you can’t reliably look for the dyld files anyway.


camoy
2020-6-23 14:38:08

You might want to check out Pollen. I think it would be a better fit for that kind of project than Scribble.


spdegabrielle
2020-6-23 15:14:16

I should have phrased it what system to you develop on.


spdegabrielle
2020-6-23 15:15:02

just click both the penguin and the window


soegaard2
2020-6-23 16:08:56


okcohen
2020-6-23 17:57:00

Hi everyone! I’m pretty new to racket and have some questions. A little background: I’m a student and ended up here as a result of reading the Little and Seasoned Schemer and then failing miserably with CLISP from the command line. I’ve been trying to use Racket for web development and was been hoping that once I learn the ins and outs of it, it will be more efficient to develop cool dynamic websites with Racket. So far things have not gone as smoothly as I hoped (big surprise). I’m willing to stick with it because I find it fun (woohoo), but do want to check some of my original assumptions, which leads me to my questions.

  1. What do you specifically use racket for? I realized the other day that I don’t know how people in the real world are actually using racket. Maybe web dev just isn’t Racket’s bread and butter…? I am considering going back to the stack I know (HTML, CSS, Javascript, MySQL, AWS)
  2. If you’ve built websites in Racket, how do you host these? Apologies in advance for my questions being

popa.bogdanp
2020-6-23 18:24:44

Hi @okcohen! I use Racket primarily for web development, but I’ve also done a macOS application using it:

https://www.matchacha.ro/ (experience report https://defn.io/2019/08/20/racket-ecommerce/\|here) • https://github.com/Bogdanp/nemeahttps://github.com/Bogdanp/try-rackethttps://github.com/Bogdanp/remember I wrote this a few months ago for a friend who was also having trouble w/ web dev in Racket:

https://defn.io/2020/02/12/racket-web-server-guide/

So you might also find it helpful. What kinds of issues have you run into?


popa.bogdanp
2020-6-23 18:27:55

As far as hosting goes, I build native binaries for linux and ship them to dedicated servers. Heroku is also an option via Alexis King’s https://github.com/lexi-lambda/heroku-buildpack-racket\|buildpack.


popa.bogdanp
2020-6-23 18:31:35

There are also a number of frameworks built on top of the web server to simplify development. I feel that https://docs.racket-lang.org/koyo/index.html?q=koyo\|mine is probably the most complete, but it could certainly do better on the documentation front. <https://github.com/racket/racket/wiki/Web-Development|This wiki page >lists some of the others.


samth
2020-6-23 18:46:05

I’ve hosted on EC2 and on linux machines I have sitting in an office or a server room.


badkins
2020-6-23 19:59:30

Welcome @okcohen - I’ve been developing Racket web applications full time for a year and a half, or so. I’m in the process of extracting useful bits from my applications to create some packages for web development. I host on AWS EC2, and I use nginx as a web server (handles load balancing and SSL termination) in front of a set of Racket processes. The web infrastructure in Racket is top notch, but it’s not yet packaged up as nicely as something like Rails, or similar web frameworks.


badkins
2020-6-23 20:01:06

The web server is solid and performant enough for me, and many of the pieces are available in high quality packages, but it does take some organizing and gluing together currently. There is a #web channel which doesn’t have much activity, but feel free to post questions in #general or #web as needed.


soegaard2
2020-6-23 20:07:19

@okcohen Here is one approach: https://github.com/soegaard/web-tutorial/tree/master/listit The simplest is to use Racket on the server and stick to JavaScript on the client. The db library supports several databases sqlite, mysql and PostgreSQL to mention a few. I am using PostgreSQL. I use DigitalOcean as the host provider.


ruyvalle
2020-6-23 20:35:26

the first two questions are invisible on Firefox on macOS catalina


ruyvalle
2020-6-23 20:36:55

actually it looks like the questions are shifted, the third box asking “Do you use Racket currently?”


okcohen
2020-6-23 21:48:05

Thanks for your feedback @popa.bogdanp @samth @sanchom @badkins @soegaard2 This might be a really obvious question, but when you host on EC2, Digital Ocean, Heroku, etc do you have to install racket in those virtual servers?


soegaard2
2020-6-23 22:01:26

@okcohen I use a “Droplet” (aka a vm) in which I install Linux (actually I choose a preinstalled Linux and then install Racket). The alternative at Digital Ocean is to use Kubernetes. https://www.digitalocean.com/products/droplets/ https://www.digitalocean.com/products/kubernetes/


badkins
2020-6-23 22:04:01

I use a https://github.com/lojic/sysadmin_tools/blob/master/cloud-setup.bash\|script to setup my EC2 servers, and it installs Racket.


samth
2020-6-23 22:34:13

Sorry, that was a brief glitch


okcohen
2020-6-23 23:20:52

Thanks everyone, this is super helpful! I’ll follow up if I have more questions



jcoo092
2020-6-24 00:38:47

On the topic of the survey, is there more guidance with the “Tell us about you as a developer” question? I’m really not sure what sort of information is desired, which tempts me to skip the question entirely.


rokitna
2020-6-24 00:44:52

I’m interested in writing Scribble documentation for some of the internals of the libraries I’ve written. These wouldn’t be very stable, and in some cases they might not even be require-able at all. I think they shouldn’t appear in a typical search because people might confuse them for the more stable interfaces. Is there a typical way to do this? Maybe I should host the internals docs on another website, or make generous use of #:link-target? #f to keep things out of the index? (On the other hand, some way of searching these docs and some hyperlinks among them would be nice.)


sorawee
2020-6-24 01:23:11

Re pollution problem, I think you can simply not upload the docs to http://pkg.racket-lang.org\|pkg.racket-lang.org and host them yourself? Just like what Neil did https://www.neilvandyke.org/racket/html-parsing/