Cool, nice work Nicola and Alex!
Ambrose
On Thu, Nov 21, 2013 at 2:16 PM, Nicola Mometto brobro...@gmail.com wrote:
https://github.com/clojure/tools.reader
Changelog:
https://github.com/clojure/tools.reader/blob/master/CHANGELOG.md
Leiningen dependency information:
Hi Edward,
I believe the return value of your expression is (nil nil nil nil ...), but
the printlns are forced just after the ( is printed.
Thanks,
Ambrose
On Mon, Nov 25, 2013 at 9:14 PM, edw...@kenworthy.info wrote:
Some (println) weirdness (board is a vector to vectors):
(println (board
Hi Jonathon,
I'm not sure I fully understand what you're after, but I suspect reduce +
reduced would be helpful.
(reduce (fn [a c] (reduced 'foo)) [] [1 2 3])
;= 'foo
As far as I'm aware you can't exit a doseq early. (Actually I guess you
could use a mutable reference
as the argument to :while,
reduced wraps a value in such a way that it stops the current reduce and
returns a value.
You might want `some` in this case.
(let [matched (some matches? regexes)]
...)
http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/some
Also filter + first has a similar effect.
Congrats!
Ambrose
On Fri, Nov 29, 2013 at 11:49 PM, Ryan Brush rbr...@gmail.com wrote:
Clara 0.3.0, a forward-chaining rules engine in pure Clojure, has been
released. The headliner is ClojureScript support, although a handful of
fixes and optimizations were included as well.
Some
Wow! Congrats!
Ambrose
On Fri, Dec 6, 2013 at 4:42 AM, Nicola Mometto brobro...@gmail.com wrote:
I'm happy to announce that after Ambrose BS commissioned me to continue
working on my CinC libraries as part of his typed-clojure campaign
(http://www.indiegogo.com/projects/typed-clojure),
By coincidence they are both equivalent and expand to exactly the same code.
The latter is preferred, and it's debatable if the former should even be
legal.
Thanks,
Ambrose
On Fri, Dec 6, 2013 at 5:07 PM, BillZhang jingege...@gmail.com wrote:
hi all,
What's the difference between these two
Interesting, I had no idea clojure.lang.Compiler was automatically imported.
You probably want
ns-unmaphttp://clojuredocs.org/clojure_core/clojure.core/ns-unmap
.
(ns rdoc.core ...)
(ns-unmap *ns* 'Compiler)
(import 'com.google.javascript.jscomp.Compiler)
Thanks,
Ambrose
On Sun, Dec 8, 2013
Thanks for sharing!
Ambrose
On Wed, Jan 1, 2014 at 12:56 PM, zcaudate z...@caudate.me wrote:
I've done a write up of my workflow here:
http://z.caudate.me/give-your-clojure-workflow-more-flow/
--
--
You received this message because you are subscribed to the Google
Groups Clojure
Congrats!
FWIW I won't be porting core.typed while tools.analyzer is still in alpha
but I'll definitely be pointing people your way.
Thanks,
Ambrose
On Sat, Jan 11, 2014 at 9:23 AM, Nicola Mometto brobro...@gmail.com wrote:
Today I released the first version of the tools.analyzer[1] and
,
This looks great! I'll give it a try.
Eric
http://lispcast.com
On Saturday, January 11, 2014 8:46:40 AM UTC-6, Ambrose Bonnaire-Sergeant
wrote:
Hi,
For those who like analysing their programs I present Dynalint, a
simplistic linter. It's essentially a bunch of manually curated runtime
Hi,
There is some conflict with ClojureScript, some others have also observed
this.
Is there some library that is upgrading the Clojurescript version to one
different to
what core.typed depends on?
Thanks,
Ambrose
On Tue, Jan 28, 2014 at 5:38 PM, t x txrev...@gmail.com wrote:
## Background
at the project.clj of core.typed, and got:
https://github.com/clojure/core.typed/blob/master/project.clj#L13
Is the dependency on [org.clojure/clojurescript 0.0-1859] correct?
(it seems rather outdated).
Thanks!
On Tue, Jan 28, 2014 at 4:59 AM, Ambrose Bonnaire-Sergeant
abonnaireserge
at 4:59 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Hi,
There is some conflict with ClojureScript, some others have also
observed
this.
Is there some library that is upgrading the Clojurescript version to one
different to
what core.typed depends on?
Thanks
Is there any way to invalidate this cache?
Thanks,
Ambrose
On Thu, Jan 30, 2014 at 9:35 PM, pron ron.press...@gmail.com wrote:
The bean function is a very useful Java interop feature that provides a
read-only view of a Java Bean as a Clojure map.
As it stands, the function performs
Hi,
If you're interested in refactoring out instances of (zipmap (keys m) (vals
m)),
then dynalint 0.1.2 may help.
[com.ambrosebs/dynalint 0.1.2]
I've added a simplistic case that warns if a
clojure.lang.APersistentMap$KeysSeq or ValsSeq is passed to zipmap.
user= (require '[dynalint.lint :as
compiling in emacs via nRepl, without the line number,
it's really hard to track down these errors. Is there any way that dynalint
could (optionally) output more info about where the infraction takes place?
Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com
February 1, 2014 6:38 AM
Hi
Ritchie sritchi...@gmail.com wrote:
Let me see how I can work that into the flow. Thanks!
Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com
February 1, 2014 6:58 AM
Hi Sam,
Are you familiar of dynalint.lint/print-warning?
That's really the best idea I've come up with.
Thanks
:22 PM, Sam Ritchie sritchi...@gmail.com wrote:
Thanks for the help! This is great.
Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com
February 1, 2014 7:16 AM
I just realised it's undocumented.
(print-warning) prints the latest warning.
(print-warning id) prints the dynalint warning
zipmap could also potentially use transients (which would be a nice
addition).
keys/vals are also lazy, so I would be surprised if there was any
performance
difference with walking the seq twice.
Thanks,
Ambrose
On Sun, Feb 2, 2014 at 11:35 AM, Justin Smith noisesm...@gmail.com wrote:
Thanks Michał, voted.
Ambrose
On Sun, Feb 2, 2014 at 12:13 PM, Michał Marczyk michal.marc...@gmail.comwrote:
On 2 February 2014 04:54, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
zipmap could also potentially use transients (which would be a nice
addition).
My patch
key entry-seq) and (map val entry-seq). The logic
producing entry-seq lives in the individual map types and is indeed lazy.
Cheers,
Michał
On Saturday, February 1, 2014 7:54:32 PM UTC-8, Ambrose Bonnaire-Sergeant
wrote:
zipmap could also potentially use transients (which would be a nice
and Documentation, Ambrose Bonnaire-Sergeant
* Clojure Compiler port to Clojure (CinC), Bronsa
* Implementation of core.matrix-compatible multidimensional array in
Clojure, Dmitry Groshev
* Algebraic Expressions, Maik Schünemann
* ClojureScript optimization and source maps support, Michal Marczyk
I would
Hi,
jvm.tools.analyzer 0.6.1 now supports ClojureScript 0.0-2138.
[org.clojure/jvm.tools.analyzer 0.6.1]
README https://github.com/clojure/jvm.tools.analyzer/blob/master/README.md
CHANGELOGhttps://github.com/clojure/jvm.tools.analyzer/blob/master/CHANGELOG.md
Thanks,
Ambrose
--
You received
Thank Nikita, added.
Ambrose
On Fri, Feb 7, 2014 at 9:17 PM, Nikita Beloglazov nikelandj...@gmail.comwrote:
Hi
I don't have editing rights for wiki so I post project idea here:
*Quil on ClojureScript**Brief explanation:
*Quilhttp://github.com/quil/quilis a drawing and animation library
On Sun, Feb 9, 2014 at 12:40 AM, Andy C andy.coolw...@gmail.com wrote:
Every persistent collection in Clojure supports conversion to the
sequence of items. This is clearly documented in the official docs and
there is no surprise here.
Would you mind to point me to that piece where doc
Hi,
dynalint 0.1.3 has a bunch of improvements.
You can now configure linting with `configure-linting!`.
Stack traces now look a lot nicer, dynalint wrappers should disappear (
example https://github.com/frenchy64/dynalint#errors).
lein-dynalint 0.1.3 has a BREAKING CHANGE. The dynalint
Hi,
Good news for core.typed + vim users (which includes me)!
Check out vim-typedclojurehttps://github.com/typedclojure/vim-typedclojurefor
some fun.
Big thanks to Tim Pope for
vim-fireplacehttps://github.com/typedclojure/vim-typedclojure and
all his vim plugins
of which I've copied the format
Hi,
lein-dynalint 0.1.4 is a little more robust.
It now outputs results under target/dynalint-output, and always outputs
results even when tests fail (writing the output is now in a try/finally).
There is a nicer error message when the dynalint dependency is missing.
README
Hi,
I need a relatively straightforward Emacs plugin for Typed Clojure written.
I'm offering a $200US bounty. If you would also like to see this, please
bump up the $$.
If you're interested in claiming, see the bounty
alias prefix
if available.
Thanks,
Ambrose
On Wed, Feb 12, 2014 at 3:18 PM, john walker john.lou.wal...@gmail.comwrote:
I'm still on my first cup, so let me know what you think:
https://github.com/johnwalker/typed-clojure-el
On Tuesday, February 11, 2014 12:01:36 PM UTC-5, Ambrose Bonnaire
, Ambrose
Bonnaire-Sergeant wrote:
Hi John,
Wow! One thing, if clojure.core.typed is aliases in the current
namespace, then the ann* refactor
should use that alias. If there is no alias, then use the fully qualified
namespace. If the var is
referred into the current ns-map, then use the fully
:31 AM UTC-5, Ambrose
Bonnaire-Sergeant wrote:
Hi John,
Wow! One thing, if clojure.core.typed is aliases in the current
namespace, then the ann* refactor
should use that alias. If there is no alias, then use the fully
qualified namespace. If the var is
referred into the current ns-map
was planning on trying gsoc anyway.
On Wednesday, February 12, 2014 6:44:08 AM UTC-5, Ambrose
Bonnaire-Sergeant wrote:
Hi John,
I gave it a whirl, it's exactly what I wanted.
When you're ready please claim the bounty.
Thanks,
Ambrose
On Wed, Feb 12, 2014 at 4:46 PM, john walker john.lo
Hi Mamun,
This is the correct syntax (you're missing some parens).
(defn check-keyword [v] {:pre [(keyword? v)]} v)
Thanks,
Ambrose
On Thu, Feb 13, 2014 at 6:47 PM, Mamun mamuni...@gmail.com wrote:
Hi
I am just testing clojure :pre condition. But look like using keyword?, it
is not
...@gmail.com wrote:
HI Ambrose,
Thanks for your reply. But why this one is working?
(defn check-nil [v]
{:pre [nil? v]}
v)
Br,
Mamun
On Thursday, February 13, 2014 11:51:31 AM UTC+1, Ambrose
Bonnaire-Sergeant wrote:
Hi Mamun,
This is the correct syntax (you're missing
Hi,
Happy to announce the first version of
typed-clojure-modehttps://github.com/typedclojure/typed-clojure-mode,
an emacs
minor mode for Typed Clojure.
Thanks to John Walker who wrote the core functionality, he earned this open
source
Nice, thanks for releasing!
Ambrose
On Fri, Feb 21, 2014 at 5:47 AM, Jules jules.gosn...@gmail.com wrote:
I've been teaching myself a bit about the internals of various Clojure
seqs over the last week or so... maps, sets, vectors etc..
I started with a little Clojure to help me drill into
Hi,
There's no core function for this (would probably be called mapply).
Try calling (apply concat m) on your map, then passing with (apply a (apply
concat m)).
Thanks,
Ambrose
On Mon, Feb 24, 2014 at 10:34 PM, bob wee@gmail.com wrote:
Hi,
There is a function a
(defn a
[ {:as
Congrats!
Ambrose
On Fri, Feb 28, 2014 at 1:22 AM, Reid Draper reiddra...@gmail.com wrote:
I'm happy to announce the first release of the newest Clojure contrib
library:
test.check [1]. Previously named simple-check [1], test.check is a
property-based testing library, based on QuickCheck.
Sounds promising, looking forward to testing the clojure-jvm patch!
Ambrose
On Sat, Mar 1, 2014 at 12:08 AM, Gal Dolber g...@dolber.com wrote:
No, its a bit more than that, but it shouldn't be hard to port. The
changes already generate the right bytecode. I'm working a clean patch for
I'm not 100% sure if this works, but have you tried writing a macro that
gets the
Java field value, and inserting into the case statement?
(defmacro motion-case [...]
`(case ..
~MotionEvent/ACTION_POINTER_DOWN ...
~ MotionEvent/ACTION_UP ...
))
On Sat, Mar 1, 2014 at 12:15 AM, Adam
PM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
I'm not 100% sure if this works, but have you tried writing a macro that
gets the
Java field value, and inserting into the case statement?
(defmacro motion-case [...]
`(case ..
~MotionEvent/ACTION_POINTER_DOWN
Hi Andy,
Lazy sequences are realised in chunks of 32.
You can see this by running:
(take 1 (map prn (range)))
(0
1
..
30
31
nil)
Thanks,
Ambrose
On Sat, Mar 1, 2014 at 1:04 AM, Andy Smith the4thamig...@googlemail.comwrote:
Hi,
Can someone correct my misunderstanding here. I was lead to
Hi Jason, Angela,
Wow, looks like fun!
It would be nice just have to specify the install prefix path once, instead
of in the bash
and install.clj file. Also the bin directory needs to be manually created
(same with the prefix directory).
I tried running the executable, I got this:
It's undefined behaviour; you should use assoc! like assoc.
Ambrose
On Thu, Mar 6, 2014 at 11:16 PM, Sergey Kupriyanov sku...@gmail.com wrote:
Thanks for the answers.
It's not my real code.
It's just trivial demo for the bug report.
I can rewrite it with no problems, but the question is
Hi,
I have a handful of projects (steadily increasing) lined up for GSoC 2014.
Of course at this stage they haven't been accepted, since student
allocations are still a few weeks away, however there are enthusiastic
students waiting in the wings.
I would be grateful for help mentoring these
, 2014 at 10:57 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
No difference, but declare can take multiple vars as arguments.
Thanks,
Ambrose
On Thu, Mar 13, 2014 at 9:51 PM, Plínio Balduino pbaldu...@gmail.comwrote:
Hi there
Is there any difference between declare
Hi Morg,
There's still time left, hopefully Jamie will chime in on the list.
Thanks,
Ambrose
On Sun, Mar 16, 2014 at 7:17 PM, Morgawr Havenlost morg...@gmail.comwrote:
Hello everybody :)
I might be a bit too late, but I was interested in having a look at the
Codexes project
for the GSoC
Hi Max,
Seems like an interesting project.
I suggest submitting a proposal on Melange and we can work out the details
there, since student applications close soon. Please follow the
guidelineshttp://dev.clojure.org/display/community/Student+application+guidelines
.
Thanks,
Ambrose
On Tue, Mar
I think I found a difference between 1.5.1-1.6.0-RC1.
(compile 'cljs.core) fails with a NPE in 1.6.0-RC1. I realise this isn't
particularly supported
by CLJS, but it still worked in 1.5.1.
https://github.com/frenchy64/clojure-16-fail
Help narrowing this is appreciated.
Thanks,
Ambrose
On
Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
I think I found a difference between 1.5.1-1.6.0-RC1.
(compile 'cljs.core) fails with a NPE in 1.6.0-RC1. I realise this isn't
particularly supported
by CLJS, but it still worked in 1.5.1.
https://github.com/frenchy64/clojure-16-fail
Help
.
On Tuesday, March 18, 2014 2:29:04 PM UTC-5, Ambrose Bonnaire-Sergeant
wrote:
I believe this is because cljs.core defines unsigned-bit-shift-right,
which now conflicts
with clojure.core/unsigned-bit-shift-right (added with 1.6.0).
1.6.0 doesn't seem to break anything here, aside from adding
It's very common for a sequence argument to also work with nil, with the
same semantics as an empty sequence. They are completely different things
but
Clojure is sloppy in this regard.
I believe this is intended.
Thanks,
Ambrose
On Tue, Apr 8, 2014 at 2:08 PM, Jeff Mad jeff...@gmail.com wrote:
Ah so it seems a lazy sequence implements IPending?
Thanks,
Ambrose
On Thu, Apr 17, 2014 at 3:39 AM, gianluca torta giato...@gmail.com wrote:
this issue on core.typed
http://dev.clojure.org/jira/browse/CTYP-96
in particular the comment:
This is starting to make me rethink what a
)
The original code is valid, so it would not throw an exception.
On Tue, Feb 12, 2013 at 7:10 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Processing a hygienic AST relieves the burden of worrying about
shadowing
of locals.
Wherever a binding would
in a namespace other
than clojure.core. Expect some false positives.
So there is a place for an AST based one (more similar to findbugs I guess)
On Wednesday, February 13, 2013 9:21:52 AM UTC+2, Ambrose
Bonnaire-Sergeant wrote:
IMO that's the job of a linter-style tool, which can be written
Interesting idea, but the specifics of the project are not clear to me.
Could you flesh out what
you're trying to achieve in particular?
Would you build on top of core.logic and core.typed?
Thanks,
Ambrose
On Thu, Feb 21, 2013 at 12:13 AM, Maik Schünemann maikschuenem...@gmail.com
wrote:
I've added two projects related to core.typed.
FYI: I am technically qualified to participate as a student in GSoC 2013,
but I may participate as a mentor instead. I'm hoping to find out in the
next few weeks.
http://dev.clojure.org/display/community/Project+Ideas#ProjectIdeas-TypeSystems
On
UTC-5, Ambrose Bonnaire-Sergeant
wrote:
Hi,
I don't understand why this `assert` fails when the namespace is compiled
with `compile`.
It seems like the datatype A is being compiled twice.
(ns mvn-test.core)
(deftype A [])
(assert (= (class (A.))
(class ((fn [] (A.))
user
how to bootstrap a little better. It would
also be nice to pull in the work that's been done recently on the reader in
clojure and datastructures in clojure.
On Sat, Mar 2, 2013 at 12:50 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Hi,
I think completing Aaron Cohen's
front-end. I'm fairly
confident that's at least a summer's work. :)
--Aaron
On Sat, Mar 2, 2013 at 11:05 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Is there enough to do here for a few months work? I've added a new
project here:
http://dev.clojure.org/display
Hi,
There's a brief transcript of a conversation with Tassilo under the ns.
He also wrote a nice blog post on the technique
http://tsdh.wordpress.com/2012/01/06/using-clojures-core-logic-with-custom-data-structures/
Thanks,
Ambrose
On Mon, Mar 11, 2013 at 12:21 PM, JvJ kfjwhee...@gmail.com
core.typed dependencies are all in Central now.
Here's a reproducible example of this failure.
http://build.clojure.org/job/core.typed/3/console
Thanks,
Ambrose
On Sun, Feb 24, 2013 at 12:50 AM, Chas Emerick c...@cemerick.com wrote:
On Feb 23, 2013, at 11:35 AM, Stuart Sierra wrote:
How useful is a fully macroexpanded AST to Codeq? There are line numbers
associated
with the AST nodes, and column numbers if you're using Clojure 1.5.0+.
Ambrose
On Thu, Mar 14, 2013 at 12:48 AM, Rich Morin r...@cfcl.com wrote:
On Mar 13, 2013, at 09:21, Ambrose Bonnaire-Sergeant wrote:
I
This is epic, and a long time coming! Thanks for the hard work David and
congrats to the other contributors, especially Nada and Jonas!
Thanks,
Ambrose
On Mon, Mar 18, 2013 at 3:50 AM, David Nolen dnolen.li...@gmail.com wrote:
I'm happy to announce the release of core.logic 0.8.0. There are
Hi David,
Excellent work so far!
I'll have a dig around and see what I find.
Thanks,
Ambrose
On Fri, Mar 22, 2013 at 10:53 AM, dmiller dmiller2...@gmail.com wrote:
Last update on this here:
The port of core.logic to ClojureCLR that resides here:
Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Hi David,
Excellent work so far!
I'll have a dig around and see what I find.
Thanks,
Ambrose
On Fri, Mar 22, 2013 at 10:53 AM, dmiller dmiller2...@gmail.com wrote:
Last update on this here:
The port of core.logic to ClojureCLR
Now that ClojureWest has finished, I'll gently bump this thread :)
Thanks,
Ambrose
On Wed, Mar 13, 2013 at 12:51 PM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
core.typed dependencies are all in Central now.
Here's a reproducible example of this failure.
http
On Sat, Mar 23, 2013 at 7:32 AM, Hugo Duncan duncan.h...@gmail.com wrote:
Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com writes:
Now that ClojureWest has finished, I'll gently bump this thread :)
Thanks,
Ambrose
Ambrose,
I had a quick look at this. I tried running
:00 PM UTC-4, Ambrose Bonnaire-Sergeant
wrote:
On Sat, Mar 23, 2013 at 7:32 AM, Hugo Duncan dunca...@gmail.com wrote:
Ambrose Bonnaire-Sergeant abonnair...@gmail.com writes:
Now that ClojureWest has finished, I'll gently bump this thread :)
Thanks,
Ambrose
Ambrose,
I had a quick look
I think I figured out how to disable compilation. Seems to work. (just
failing unit tests now)
http://build.clojure.org/job/core.typed/17/console
Thanks!
Ambrose
On Mon, Mar 25, 2013 at 9:30 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Hi Stuart,
I think the problem
Yay!
On Tue, Apr 9, 2013 at 3:33 AM, Daniel Solano Gómez cloj...@sattvik.comwrote:
Hello, all,
I am happy to report that Clojure has been accepted as a mentoring
organization for Google Summer of Code 2013. Now is the time for
sudents to start researching their projects and reaching out
Hi Patrick,
I'm sure David will respond on the list.
Racket's pattern matching facilities are very impressive:
http://docs.racket-lang.org/reference/match.html
FWIW the Typed Racket implementation has lots of cool examples using
pattern matching. I can be more specific if you want.
Thanks,
Bonnaire-Sergeant for helping me out
with a number of core.logic questions.
Thanks to Norman Richards for the pldb library, which helped quite a bit...
and... thanks to anyone else who has answered my question on the forums.
you guys are great!
--
--
You received this message because you
jvm.tools.analyzer is a nice tool for exploration in this area.
I don't personally know all the subtleties here, but after some playing I
managed to emit an unboxing function.
I could tell from the AST.
https://gist.github.com/frenchy64/5459989
Thanks,
Ambrose
On Thu, Apr 25, 2013 at 9:44 PM,
Hi Navgeet,
I'm not sure if rewriting jvm.tools.analyzer is a good idea, given that
there is CinC project for this year's GSoC.
Perhaps you could contribute to the CinC analyzer, and then follow with
integration with Codeq?
Thanks,
Ambrose
On Wed, May 1, 2013 at 1:45 AM, Navgeet Agrawal
Hi Navgeet,
Yes CinC is a big job.
Ah, I read the proposal more closely. I think you're on the right track.
You should only need one more AST node for unexpanded macros, or maybe even
just extra metadata on the :invoke :op.
As a quick and dirty approach I like it.
Thanks,
Ambrose
On Wed, May
as a call to clojure.core/+.
Have you considered these issues? Will you have a tolerance for false
positives?
Thanks,
Ambrose
On Wed, May 1, 2013 at 3:47 PM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Hi Navgeet,
Yes CinC is a big job.
Ah, I read the proposal more
What about calls to `let`, `defn`, `loop`, `cond` and `fn`, which are all
macros?
Thanks,
Ambrose
On Wed, May 1, 2013 at 4:34 PM, Navgeet Agrawal
navgeet.agra...@gmail.comwrote:
If I understand correctly, a macro invocation of the form `(expand '(+ 1
2)) = (plus 1 2)` will be analyzed as
According to the reader page, # isn't a valid character in a symbol/keyword.
http://clojure.org/reader
Thanks,
Ambrose
On Wed, May 1, 2013 at 10:22 PM, Dave Sann daves...@gmail.com wrote:
I came across the following...
;; = ok;
(let [v :abc] nil)
;; = ok;
(let [v :abc]
nil)
;; =
Hi,
Announcing a new release of core.typed, with a bunch of improvements and
fixes.
Leiningen: [org.clojure/core.typed 0.1.14]
Highlights:
- support optional mandatory function keyword arguments
- def-alias takes a docstring, and adds appropriate :doc metadata to the
alias var.
- accumulates
Thanks! I'll be open sourcing a hobby project in the next few days that
shows off these features.
Ambrose
On Sat, May 11, 2013 at 10:12 PM, Max Penet m...@qbits.cc wrote:
Hi,
Some nice improvements here, thanks!
- Max
On Saturday, May 11, 2013 3:53:02 PM UTC+2, Ambrose Bonnaire-Sergeant
Hi,
A brief but highly visible release of core.typed: types and forms in error
messages are abbreviated where possible.
See the changelog and check-ns docstring for details.
In a nutshell:
fire.main= (check-ns 'fire.simulate)
...
Type Error (fire.simulate:72) Expected type: Grid
Actual:
Hi David,
Clojure can generate auto-syms with a trailing #.
user= `(fn [x#] x#)
(clojure.core/fn [x__349__auto__] x__349__auto__)
Thanks,
Ambrose
On Mon, May 27, 2013 at 9:08 AM, David Pollak feeder.of.the.be...@gmail.com
wrote:
Mark and James,
Thank you for your input.
There are two
Hi John,
By :pre, do you mean function preconditions? eg. (fn [] {:pre [..]}) ?
How is :pre related to metadata and dispatch? AFAICT it's purely for
macroexpansion and
there is no metadata available on the precondition post-macroexpansion.
Thanks,
Ambrose
On Mon, May 27, 2013 at 9:00 PM, John
Congrats and good luck!
Ambrose
On Tue, May 28, 2013 at 9:06 AM, Rich Morin r...@cfcl.com wrote:
I am delighted to report that my notion of a GSoC project on Codeq was (a)
taken up by Navgeet Agrawal and (b) accepted by Google. Paul deGrandis,
Tom Faulhaber, and I will be Navgeet's
First of all, congrats on the project!
Could you elaborate on your mention of QuickCheck, I couldn't find it in
the proposal.
Thanks,
Ambrose
On Tue, May 28, 2013 at 4:25 PM, Dmitry Groshev lambdadmi...@gmail.comwrote:
Hello, Clojurians.
I was selected during GSoC process to implement a
[ {:as m}]
On Fri, Jun 7, 2013 at 3:23 AM, JvJ kfjwhee...@gmail.com wrote:
Consider the following:
(let [ [{:keys [] :as m}] [:a 1 :b 2 :c 3]]
m)
== {:a 1 :b 2 :c 3}
Is there a shorter form of [{:keys [] :as m}]?
--
--
You received this message because you are subscribed to
FWIW a third option to determine the exact method called is
jvm.tools.analyzer:
clojure.tools.analyzer= (clojure.pprint/pprint (ast (+ 1 2)))
{:op :static-method,
:env
{:source NO_SOURCE_FILE,
:column 29,
:line 1,
:locals {},
:ns {:name clojure.tools.analyzer}},
:class
Hi Nathan,
I just had a quick look at the implementation: I think Clojure picks the
first matching method if several are found.
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Reflector.java#L70
It's probably worth testing this out though.
Thanks,
Ambrose
On Tue, Jun 11,
What is the Java source for setting up the Window object?
Ambrose
On Fri, Jun 24, 2011 at 1:24 AM, Antonio Recio amdx6...@gmail.com wrote:
I have tried to translate an example of vaadin in java to clojure. But I
get errors.
This is the java code:
Panel panel = new Panel(Split Panels Inside
Does Window's add() method take multiple arguments? It looks like
you're passing 4 arguments to it.
Also (tree Tree. Menu)
should be (tree (Tree. Menu))
Same with (vsplit VerticalSplitPanel.
(add (Label. upper panel) (Button. lower panel
Could you post the
I've never used it, but you would use amap instead of map in this situation,
because it is a Java array.
http://clojuredocs.org/clojure_core/clojure.core/amap
Ambrose
On Mon, Jun 27, 2011 at 1:08 PM, Linus Ericsson
oscarlinuserics...@gmail.com wrote:
Maybe
(map #(.addItem tree (.toString
If you want to play around with it in a REPL, you need to require or use
the namespace
you want, and then you will have access to the functions in that namespace.
There is an example of this on the project page (see Synopsis):
https://github.com/mmcgrana/clj-json
Ambrose
On Mon, Jun 27, 2011
I'm interested too. Just sent in my CA from Australia, so hopefully
shouldn't be too long.
I think I looked through the essays briefly when this was first posted,
I coincidentally
am working through the The Art of the Metaobject Protocol right now.
+1 on an update please :)
Ambrose
On Thu, Jul
I've found that (some of) Clojure's advanced features are best taught in
terms of simpler ideas
that most programmers would be familiar with.
For example, excuse the plug, I motivated multimethods by relating them to
simple conditionals
like case. I think I succeeded in making MMs just look like
Hi,
On Wed, Jul 13, 2011 at 7:57 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
multimethods - since close to every mention of multimethods also involves
telling how slow they are, these are most often shunned.
I don't get that impression. MM's seem to be pushed as a first choice
This is a first for me, a Clojure IDE that just works.
Big thumbs up!
Ambrose
--
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 new members are moderated - please be
(I'm frenchy64)
More cool stuff to come, watch this space http://twitter.com/#!/ambrosebs
Ambrose
On Tue, Jul 19, 2011 at 11:50 AM, Devin Walters dev...@gmail.com wrote:
Thanks David! (And French64 of course)
--
Devin Walters
On Monday, July 18, 2011 at 10:33 PM, Brent Millare wrote:
1 - 100 of 492 matches
Mail list logo