@darioszr has joined the channel
hi! :racket:
@darioszr hello! :wave:
glad to be here ! i did my 1st helloworld programs with racket but I have a clojure background.. (and knows other langs..)
I find racketlang really interesting :racket: currenlty I’m learnig more about raco
for setting up a project..
1st noob question.. https://github.com/mbutterick/pollen/blob/master/info.rkt#L1
Is this somehow a know pattern when defining a project?
I’m just looking upstream in the wild right now :grin:
a part of that, where I could get any info on the web on the #lang info
? tia
@darioszr If you run raco pkg new
, it will make an empty racket package with the info.rkt
file all set up for you
thx! i was reading the whole manuals..
:grin:
Also see this template github repository, if you’re planning on hosting your code in github: https://github.com/spdegabrielle/racket-package
(thanks @spdegabrielle!)
nice! I was actually creating the same thing..
:grin:
@notjack so I created the project. where does the raco install
install the pkg?
I’m using a Linux Os
@darioszr By default it puts it in some directory somewhere in your racket installation, and you have to reinstall it each time you edit your code locally and want the installed package to reflect the edits. But I recommend installing your own packages using raco pkg install --link
instead of raco pkg install
, which won’t copy the code to racket’s directory of packages and instead will set up a “link” to the directory with your code, so as you edit it changes are reflected immediately.
So remove the package with raco pkg remove mypackage
, then reinstall it by running raco pkg install --link mypackage
(where mypackage
is the name of the directory containing your package)
@darioszr @notjack there is a great tutorial on creating packages on the Racket blog: https://blog.racket-lang.org/2017/10/tutorial-creating-a-package.html
@darioszr @notjack see also https://docs.racket-lang.org/pkg/getting-started.html
@darioszr @notjack and https://www.greghendershott.com/2014/11/racket-workflow.html
Hi all, keep asking questions! (And keep answering them too!) To help you get started we have collected some useful resources https://github.com/racket/racket/wiki/How-to-get-started
@darioszr @notjack the template is still a draft. raco pkg new <<package name>>
is best. The template does some GitHub specific configuration like adding the racket
topic to the repo and a custom issue templates and one or two other things.