Why are Clojure features defined in terms of Java classes, instead of as
bytecode primitives?
For eg: Cons is a class containing two objects: first and rest.
Is this only to achieve Java interoperability, or is there more to it?
--
You received this message because you are subscribed to the
Well, why write it in primitives when there is a perfectly good compiler
from java to primitives? I dont quite understand why you think there would
be benefit from manually writing everything with java bytecode. The JVM
works with classes, thats how its designed, Clojure itself is just a java
The JVM is very class-oriented. It is basically designed for Java, and
corresponds pretty much to the things you can do in Java. Code belongs to
methods which belong to classes, and calls are made using java method
calling conventions. Data has to be stored in primitives, arrays, or
objects;
How to convert the current date and time to the format i need ? for
example i retrieve current time using (l/local-now) which outputs
#DateTime 2014-04-29T11:16:02.420+02:00
i want the above output to be converted to format dd:MM: HH:mm:ss
Should i define my own formatter like below
Hi ,
I didn't verify if that particular formatter comes prepackaged ( I am
assuming you are using clj-time since it is not mentioned..) Once you have
created your custom formater all you have to do is unparse
(clj-time.formatter/unparse date-time-object custom formatter ) .
This is there in the
Hello,
I installed intelij with the cursive plugin.
Now I wonder if this can be done in some way.
Suppose I have a file with 3 functions.
Can I send one to REPL so I can test if it works as I expected.
Roelof
--
You received this message because you are subscribed to the Google
Groups
Hi Roelof,
I saw your message on the Cursive mailing list, I've replied over there.
Cheers,
Colin
On 29 April 2014 23:04, Roelof Wobben rwob...@hotmail.com wrote:
Hello,
I installed intelij with the cursive plugin.
Now I wonder if this can be done in some way.
Suppose I have a file with
It was! Thank you very much.
Phil
Jean Niklas L'orange jeann...@hypirion.com writes:
If you want to say the goal g(x) shall succeed, for all x in this list,
then use `everyg` from clojure.core.logic instead of map. I think it is
exactly what you're looking for.
On Monday, April 28, 2014
Ya i am using cji-time. Found a way .
(def multi-parser (f/formatter (t/default-time-zone) dd:MM:
HH:mm:ss -MM-dd HH:mm:ss))
(def currenttimestamp
(f/unparse multi-parser (f/parse multi-parser (l/format-local-time (
l/local-now) :mysql))) )
(def custom-formatter
Hey,
I haven't tried live.js. But these tools might be of interest.
- Austin https://github.com/cemerick/austin/ has the ability to *Multiple
concurrent browser-REPLs can be safely used from the same project*
(though I haven't yet tried this feature).
Hey guys,
I need your help in choosing a web stack for a medium sized website
project, which is going to take the better half of my time for the next
year. I really want to use clojure, because of various reasons, but have
never done web development with it before. Frankly, it’s quite hard to
Hi
2014-04-29 10:22 GMT+02:00 Bernhard Mäder bernhard.mae...@gmail.com:
Hey guys,
I need your help in choosing a web stack for a medium sized website
project, which is going to take the better half of my time for the next
year. I really want to use clojure, because of various reasons, but
One of the biggest value propositions of Pedestal has always been that it's
the only Clojure web server library to support end-to-end async operations.
You can do things like have a handler return a core.async channel, or
pause/resume the entire web stack multiple times during a single request.
Thank you for the explanation.
What if I target a non-OO-centric VM (like Parrot or LLVM)?
I've noticed that most Lisp implementations define lambda calculus
primitives, and then use those as the core.
I wonder what would be if we had bytecode primitives, and defined
everything else on top of
I looked into a port of Clojure to Parrot, and it basically does the same
thinghttps://github.com/ayardley/ClojurePVM/blob/master/src/c/lisp/microlisp/lisp.c
.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Why not emit bytecode directly from the language?
Couldn't this potentially lead to tons of specialized optimizing macros?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts
The hard part with other runtimes will be details around things like
garbage collection for the implementation of persistent data structures.
Clojurescript is a better example of how this is done since most of the
impls are implemented in the language itself, different from
clojure-proper.
Thank you Timothy,
I did watch that talk! In fact, it was one of the videos that really piqued
my enthusiasm in core.async. I had no idea that the code was available on
github. Good news. I am thinking now about how I could use core.async to do
useful/fun things: web-service or browser game,
On Tuesday, April 29, 2014 3:25:45 PM UTC+2, Andrey Antukh wrote:
For authentication and authorization I'm using buddy (
http://niwibe.github.io/buddy/) what has slightly different approach that
friend,
Liberator for backend code and angularjs for frontend. It works very well
for my
Thanks for the recommendation. This book looks awesome. Why haven't I heard
of it?!
Jesse
On Tuesday, April 29, 2014 12:16:20 AM UTC+9, Alex Ott wrote:
The Seven Concurrency Models in Seven Weeks: When Threads Unravel (
On Tuesday, April 29, 2014 3:29:26 PM UTC+2, tbc++ wrote:
One of the biggest value propositions of Pedestal has always been that
it's the only Clojure web server library to support end-to-end async
operations. You can do things like have a handler return a core.async
channel, or
Pedestal was developed by Cognitect and I would assume they use it on many of
their consulting projects. Since future support appears be a major concern for
you (rightly so), Pedestal probably fulfills that requirement better than
anything else out there right now. Even if you don't need all
Check out my previous reply. The parrot vm provides gc and everything, But
still the author defines lambda primitives in c, and then builds over it.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
I am please to announce the second full release of Tawny-OWL, my library for
fully programmatic development of OWL ontologies. The library now has a fairly
large feature set:
** Complete support for OWL2
** Integrated support for reasoning with HermiT or ELK
** Profile checking
** Fixtures and
It's possible, if 'possible' includes the possibility of writing some
extensions to austin to eval across multiple sessions :-).
On Tue, Apr 29, 2014 at 8:43 AM, Timothy Washington twash...@gmail.comwrote:
Hey,
I haven't tried live.js. But these tools might be of interest.
- Austin
This is excellent! I definitely think there is a lot of opportunity for
fusion between Clojure and Nginx. Clojure's model already supports the
cooperating threads model that can simplify Nginx's complex event model, as
you have demonstrated. Work has already been done that proves this idea
Not to make it more complicated for you, but have you looked at Hoplon too?
http://hoplon.io/
I was *very* impressed by the author's presentations, the later of which
is https://www.youtube.com/watch?v=wVXjExRiFy0
And podcast about
it:
Meltdown is a Clojure interface to Reactor, an asynchronous
programming, event passing and stream processing toolkit for the JVM.
After several alphas and a dozen of betas, Meltdown is
ready to go 1.0. If you're not sure what Meltdown is about, see
the intro post:
What?
Clojure wrapper for MongoDB Java driver
Where?
https://github.com/aboekhoff/congomongo
News?
The only change from 0.4.3 is updating the Java driver to 2.12.1.
MongoDB say the driver update is recommended for all users.
More?
Details of 2.12.1
For the llvm based approach you can look at vmkit.
On Wednesday, April 30, 2014 3:39:21 AM UTC+12, Divyansh Prakash wrote:
Check out my previous reply. The parrot vm provides gc and everything, But
still the author defines lambda primitives in c, and then builds over it.
--
You received
To do this i created a new run configuration with and in the run config
dialog set it to local clojure repl, then you need to go to preferences and
create keybindings for send current form to repl (I just used shift +
enter). Then it should work no problem.
On Tuesday, April 29, 2014 11:04:24
Hi there
Where is the class clojure.lang.Box used in Clojure?
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Box.java
Regards
Plínio
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentHashMap.java#L141
On Tue, Apr 29, 2014 at 1:21 PM, Plínio Balduino pbaldu...@gmail.comwrote:
Hi there
Where is the class clojure.lang.Box used in Clojure?
Sure, I didn't notice val as public member.
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentHashMap.java#L146
Thank you
Plínio
On Tue, Apr 29, 2014 at 4:44 PM, Timothy Baldridge tbaldri...@gmail.comwrote:
Hi,
## context:
I am currently running lein cljsbuild auto
It appears that each new compile _overwrites_ the old compile in place, say
resources/out
## what I would prefer to happen:
every time a new build is triggered, have it
write to resources/tmp
then, exec rm -rf
Hello, all,
It's been over a week now since Google announced all of our GSoC
students. I was on vacation, but here's the list of projects, students,
and mentors:
1. Aleph, a BOT browser and introspector for Light Table, by Andrea
Marchiori, mentored by Jamie Brandon and Chris Granger
2.
And a hearty cheer for Daniel (and his helpers) for their efforts!
-r
--
http://www.cfcl.com/rdm Rich Morin r...@cfcl.com
http://www.cfcl.com/rdm/resumeSan Bruno, CA, USA +1 650-873-7841
Software system design, development, and documentation
--
You received this
This is awesome, thank you Leif!
I just set up an office hours account to help anyone who might be
interested in organizing a Clojure tech conference or event, Meetup, etc.
I chose some random office times, so ping me if you have a special timing
request outside of the listed hours.
Correct answer:
https://github.com/emezeske/lein-cljsbuild/blob/master/sample.project.clj#L73
:-)
On Tue, Apr 29, 2014 at 2:29 PM, t x txrev...@gmail.com wrote:
Hi,
## context:
I am currently running lein cljsbuild auto
It appears that each new compile _overwrites_ the old compile in
Here's a round of benchmarks for the new functions
(avl/{nearest,subrange,split-at,split-key}), with a lookup benchmark
included as a point of reference.
Cheers,
Michał
(let [m (apply avl/sorted-map
(interleave (range 10) (range 10)))]
(c/bench (get m 9))
(c/bench
What Leiningen plugins do you have installed? (Both in your project and in
your user profile)
I believe this is caused by a plugin forcing an earlier version of
clojure.core.cache on you...
On Saturday, April 26, 2014, Daniel Slutsky daniel.slut...@gmail.com
wrote:
added an issue at
Agreed! These all look really exciting.
On Tuesday, April 29, 2014 5:42:29 PM UTC-4, Rich Morin wrote:
And a hearty cheer for Daniel (and his helpers) for their efforts!
-r
--
http://www.cfcl.com/rdm Rich Morin
r...@cfcl.comjavascript:
On Saturday, April 26, 2014 9:21:26 PM UTC-7, Mars0i wrote:
I like the general idea of the Valentin's proposal, but I don't
understand every bit of it. It sounds complicated. Personally, I'd
rather see something that's relatively simple, and good enough, than
something that's perfect but
Wow, lots of cool projects to look forward to. Congrats to all the GSoC
students, and thank you to all their mentors.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from
Hi Guys,
I was looking for a very simple stream processing lib. We have some in
clojure (lamina, meltdown, esper, eep).
The simplest one was clojure werkz eep, but they don't provide sliding
windows. I ender up writing this:
Having worked through this for java.jdbc (and to a lesser extent for
CongoMongo), I think that I would approach it slightly differently in future:
Provide two functions: one taking a map, one taking keyword arguments; the
latter delegating to the former via {:as opts} and then internal calls
On 30 April 2014 03:54, Sean Corfield s...@corfield.org wrote:
I still think the keyword argument approach is far more readable to _users_
Really? It's only an omission of two braces. While readability is
subjective, I'm not sure how that can be considered to be *far* more
readable.
From a
Phil,
I like the general idea of the Valentin's proposal, but I don't
understand every bit of it. It sounds complicated. Personally, I'd
rather see something that's relatively simple, and good enough, than
something that's perfect but unwieldy. If it's too difficult, people
won't use it,
On Tuesday, April 29, 2014 8:47:58 PM UTC-7, da...@axiom-developer.org
wrote:
Can I ask, quite seriously and not intending any sarcasm, what you mean
by detracts from what's important?
What's important is writing clear explanatory prose.
This is really hard to do for a lot of reasons, but
On Tuesday, April 29, 2014 10:47:58 PM UTC-5, da...@axiom-developer.org
wrote:
Phil,
I like the general idea of the Valentin's proposal, but I don't
understand every bit of it. It sounds complicated. Personally, I'd
rather see something that's relatively simple, and good enough,
On Tuesday, April 29, 2014 11:01:46 PM UTC-5, Mars0i wrote:
On Tuesday, April 29, 2014 10:47:58 PM UTC-5, da...@axiom-developer.orgwrote:
Phil,
I like the general idea of the Valentin's proposal, but I don't
understand every bit of it. It sounds complicated. Personally, I'd
rather
On Tuesday, April 29, 2014 9:08:48 PM UTC-7, Mars0i wrote:
Oh, sorry--you also asked what I meant by detracts from what's
important. If a documentation formatting/organizing/coding system required
learning a lot, figuring out a lot, adding information that is unlikely to
be helpful
Huge thanks to Daniel for ushering things up to this phase - he has done a
ton of work behind the scenes (along with Ambrose and the other mentors) in
working to connect the right people and projects and take care of all the
paperwork so this happens.
Alex
On Tuesday, April 29, 2014 4:34:20
On Wed, Apr 30, 2014 at 4:18 AM, Phil Hagelberg p...@hagelb.org wrote:
On Tuesday, April 29, 2014 9:08:48 PM UTC-7, Mars0i wrote:
Oh, sorry--you also asked what I meant by detracts from what's
important. If a documentation formatting/organizing/coding system required
learning a lot,
I'm extremely internally torn regarding kwargs. I use them a lot; I know
they hinder composability; but every time I go back to straight maps for
these kinds of things I really don't like all the extra noise characters
and go back to kwargs.
I feel like I really should be using regular maps for
On 30 April 2014 06:07, Alex Baranosky alexander.barano...@gmail.comwrote:
I especially dislike that my non-kwarg fns no-longer can elegantly accept
no options. Let me illustrate:
(defn foo [ {:keys [a b]}]
[a b])
(foo :a 1 :b 2)
(foo)
You could write:
(defn foo [ [{:keys [a b]}]]
56 matches
Mail list logo