This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-04
Channels
- # architecture (13)
- # bangalore-clj (1)
- # beginners (174)
- # boot (25)
- # cider (65)
- # cljs-dev (10)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (169)
- # clojure-berlin (27)
- # clojure-brasil (32)
- # clojure-greece (3)
- # clojure-russia (31)
- # clojure-sg (4)
- # clojure-spec (6)
- # clojure-uk (74)
- # clojurescript (186)
- # code-reviews (5)
- # css (12)
- # cursive (17)
- # datascript (1)
- # datomic (45)
- # dirac (33)
- # funcool (42)
- # hoplon (25)
- # jobs (6)
- # jobs-discuss (114)
- # lambdaisland (6)
- # leiningen (1)
- # luminus (24)
- # off-topic (86)
- # om (13)
- # om-next (14)
- # onyx (75)
- # perun (2)
- # protorepl (19)
- # re-frame (2)
- # reagent (17)
- # ring-swagger (2)
- # rum (1)
- # slack-help (2)
- # specter (31)
- # test-check (5)
- # timbre (1)
- # untangled (34)
- # vim (8)
@notanon You can check for nulls on your own, but Tony Hoare has a billion dollars that says you won't
(map-filter
(lambda (x)
(= (substring x 0 4) "(def"))
'("hello" "(defn" "(deftest" "world"))
^^ what is wrong with this piece of elisp code?So how does Kotlin handle nils around Java Interop? Seems like it would still be a problem there
If a type comes from Java code, I believe it's considered to be nullable by default. I suspect JB has integrated their existing Nullable/NotNull annotations, though, to cover the vast majority of existing core Java code.
hello guys, I am reading “Paradigms of Artificial Intelligence Programming”, this book => https://www.amazon.com/Paradigms-Artificial-Intelligence-Programming-Studies/dp/1558601910
case studies are in Common Lisp, which I know nothing about ^^
I don’t mind learning but I was looking for an IDE or a simple emacs plugin, my goal is not to be a professional Common Lisp programmer but read this book
any advices ?
yes, is it good ?
Clojure syntax looks a lot like Common Lisp from what I’ve seen
but loading files and its dependenices and ensuring the repl is ready to go is a pain in the ass
i wish there was an easy way to make the package files and asdf files and load it all
@baptiste-from-paris if you're looking for something that isn't emacs, I've heard good things about this: http://www.lispworks.com/products/lispworks.html
@dpsutton do you think I can read this book while using clojure , ?
from my point of view it’s always good to learn a new langage
but my focus is on AI not Common Lisp ^^
you can probably get by with extra references to the hyperspec and one of the clojure docs sites open
i.e. if you don't understand how some function works, look it up in the hyperspec and see if you can apply that to clojure
@bja hyperspec ???
in CL, you can just regularly bind a *dynamic-var*
whereas clojure you have to (binding ...
ok, got it
so I guess with SLIME I can get a REPL as in clojure ?
ah. i remember now seeing the multiple-values-bind
from CL, a form that i really like
lol ! nice
how did you like the book ?
great !
It looks like it’s a book where you need 6 months of time to read it
I have kind of an oddball UNIX/JVM process problem, thought I’d see if anyone has an inspired take. I have a process that needs to interact with the operator at startup via stdin and stdout (to receive secrets) but thereafter it needs to run as a daemon. I’ve thus far been faking it by running it in a screen process, but hit a snag over the holidays when, apparently, the stdout buffer hit its limit, blocking the process for several days.
Any ideas for a better way to manage such a process? Neither screen nor tmux seem to offer a dropping-buffer stdout.
I would write a shell wrapper to handle the initial input, then have the bash process fork and background the JVM process and pass the secrets in the environment... but then if you pass the secrets in the environment to begin with, you could just get rid of the bash process...
yeah, my concern there is that they’re exposed in the /proc fs
I can stop the process from logging foo to stdout and sidestep at least this manifestation of the problem, but I’m curious if there’re any alternate approaches I haven’t considered
@donaldball oooh, a pseudo-tty might help!
same idea, but on startup, the wrapper program (I would use python, because it has a pretty nice interface to pseudo-ttys) is connected to your jvm process, and passes through the stdin, then the wrapper process quits, and the other program keeps running in the background
hmm, yeah, that might do. You’re essentially writing a bespoke replacement for screen/tmux for this special case...
thanks, I’ll look into that!
here's the python module that deals with them https://docs.python.org/3.6/library/pty.html