Hi
I want to output some sound with javax.sound.sampled.
But from AudioSystem.getSourceDataLine i get a AbstractDataLine which i
need to typecast to a SourceDataLine. How can i make this typecast in
clojure?
Thanks
Fabian
--
--
You received this message because you are subscribed to the
(cast SourceDataLine a-instance)
On Monday, January 20, 2014 4:46:23 PM UTC+8, Fabian Page wrote:
Hi
I want to output some sound with javax.sound.sampled.
But from AudioSystem.getSourceDataLine i get a AbstractDataLine which i
need to typecast to a SourceDataLine. How can i make this
Hi,
Am Montag, 20. Januar 2014 09:46:23 UTC+1 schrieb Fabian Page:
I want to output some sound with javax.sound.sampled.
But from AudioSystem.getSourceDataLine i get a AbstractDataLine which i
need to typecast to a SourceDataLine. How can i make this typecast in
clojure?
Why do you
Hi,
## Basic Question
Is there a library that:
(1) is like slingshot.slingshot and
(2) has the same syntax + semantics in both clj and cljs ?
## Situation I'm stuck in:
* I'm writing code in cljx. Thus, as much as possible, I'd prefer code
that simultaneously work with both clj and
I get a:
java.lang.IllegalArgumentException: Can't call public method of non-public
class: public final void
com.sun.media.sound.AbstractDataLine.open(javax.sound.sampled.AudioFormat,int)
throws javax.sound.sampled.LineUnavailableException
From a tutorial i saw that they first typecast the
From what i understood cast only checks if a-instance can be a
SourceDataLine. But it doesn't cast the AbstractDataLine to a
SourceDataLine?
Thanks Fabian
Am Montag, 20. Januar 2014 09:58:51 UTC+1 schrieb Gaofeng Zeng:
(cast SourceDataLine a-instance)
On Monday, January 20, 2014 4:46:23 PM
Maybe your needs are met by the now builtin ex-info and ex-data. They work
the same in clj and cljs:
(try (throw (ex-info msg {:data map}))
(catch :default e
(ex-data e)))
kind regards
2014/1/20 t x txrev...@gmail.com
Hi,
## Basic Question
Is there a library that:
(1) is like
Hi,
Am Montag, 20. Januar 2014 11:34:29 UTC+1 schrieb Fabian Page:
I get a:
java.lang.IllegalArgumentException: Can't call public method of non-public
class: public final void
com.sun.media.sound.AbstractDataLine.open(javax.sound.sampled.AudioFormat,int)
throws
Very nice.
Much better than the past 2 hours I spent writing a simpler version of
Throwable w/ data, i.e.:
(ns MyError
(:gen-class
:extends java.lang.Throwable
:state state
:init init
:constructors {[Object] []}))
(defn -init
[obj]
[[] obj])
Thanks!
On Mon, Jan 20, 2014 at
Thanks a lot! That problem is solved now :)
Fabian
Am Montag, 20. Januar 2014 12:51:43 UTC+1 schrieb Meikel Brandmeyer
(kotarak):
Hi,
Am Montag, 20. Januar 2014 11:34:29 UTC+1 schrieb Fabian Page:
I get a:
java.lang.IllegalArgumentException: Can't call public method of
non-public
Thank you, Toby. I've shared this with my colleagues involved in this
project and we're taking a look at it now.
On Thursday, January 16, 2014 12:59:47 PM UTC-5, Toby Crawley wrote:
The isolation in Immutant is achieved (in part) by ShimDandy[1], which
can be used outside of Immutant with a
An update, Toby--my colleague wrote a simple app with ShimDandy and it's
working. So far so good. We're going to present it as a possible solution
to our users on Wednesday and see what happens.
On Thursday, January 16, 2014 12:59:47 PM UTC-5, Toby Crawley wrote:
The isolation in Immutant is
Good deal, thanks for keeping me posted. Let me know if you run in to
any issues.
- Toby
solo.l...@gmail.com writes:
An update, Toby--my colleague wrote a simple app with ShimDandy and it's
working. So far so good. We're going to present it as a possible solution
to our users on Wednesday
Thanks, Vijay. We'll evaluate this, too.
On Friday, January 17, 2014 5:20:12 PM UTC-5, Vijay Kiran wrote:
May be this would help? https://github.com/flatland/classlojure
On Thursday, January 16, 2014 5:13:11 PM UTC+1, solo...@gmail.com wrote:
Quick update and question: We've put together a
On Sunday, January 19, 2014 12:48:36 PM UTC-6, Brian Craft wrote:
That helps, thanks. It's still unclear to me that this is important enough
to worry about. What application or service is hindered by string encoding
a date in JSON? An example would really help. It's not compelling to
Today I'm releasing play-clj https://github.com/oakes/play-clj, a Clojure
wrapper for LibGDX that allows you to write games for desktop OSes,
Android, and iOS from the same Clojure codebase. The template automatically
creates Leiningen projects for all three platforms:
lein new play-clj
Congratulations !
2014/1/20 Zach Oakes zsoa...@gmail.com
Today I'm releasing play-clj https://github.com/oakes/play-clj, a
Clojure wrapper for LibGDX that allows you to write games for desktop OSes,
Android, and iOS from the same Clojure codebase. The template automatically
creates
Thanks! I submitted it to HN naturally:
https://news.ycombinator.com/item?id=7090003
On Monday, January 20, 2014 10:46:06 AM UTC-5, Laurent PETIT wrote:
Congratulations !
2014/1/20 Zach Oakes zso...@gmail.com javascript:
Today I'm releasing play-clj https://github.com/oakes/play-clj, a
Might be a good topic for a Clojure/West submission
https://cognitect.wufoo.com/forms/clojurewest-2014-call-for-presentations/
On Monday, January 20, 2014 9:31:50 AM UTC-6, Zach Oakes wrote:
Today I'm releasing play-clj https://github.com/oakes/play-clj, a
Clojure wrapper for LibGDX that
core.match can do some of this. https://github.com/clojure/core.match
data.zip has some extensions beyond zip that are useful (although a lot of
what's there is cast in terms of xml-handling uses):
https://github.com/clojure/data.zip
I have rolled variants of this a few times, mostly using
On Sunday, January 19, 2014 11:19:45 PM UTC-6, g vim wrote:
critical factor. I'm not sure I can work outside Leiningen, though. It
seems to be as much a part of the Clojure development process as anything.
Just to be clear, Leiningen only eats CPU when started in an arbitrary
directory.
A UK-based Clojure job for a change... Metail is a start-up with a tech
team based in the centre of Cambride. We are looking to recruit a junior
developer to work on a mix of RESTful API handlers and frontend web
applications, all build using Clojure. This is an ideal job for a recent
graduate or
Thank you, I'll look into this. Someone mentioned it to me at our
Pittsburgh Clojure meetup last week. I don't think I've ever been to the
west coast!
On Monday, January 20, 2014 11:36:16 AM UTC-5, Alex Miller wrote:
Might be a good topic for a Clojure/West submission
Is there any chance of support for javascript/webgl?
On Monday, January 20, 2014 10:31:50 AM UTC-5, Zach Oakes wrote:
Today I'm releasing play-clj https://github.com/oakes/play-clj, a
Clojure wrapper for LibGDX that allows you to write games for desktop OSes,
Android, and iOS from the same
I don't have any plans at the moment for that. LibGDX actually does allow
you to compile your game to HTML/JS, but it uses GWT which is a source code
translator, so it only works with Java. Also, it doesn't have access to the
parts of LibGDX that rely on native code, such as the physics engine
I am not actually familiar with this form, don't know what [types] actually
does:
(:require [macros.arrow :refer (=)]
[types])
I don't think you need to be requiring the cljs macros twice as you seem to
be doing in both forms.
Macros are in general somewhat of a sore spot in
Hello
I am newbie to Clojure. Been using for a couple of months now. With that
disclaimer out of the way, we have use-cases where we would like multiple
clojure run times with in the same JVM and have these run times share
clojure data structures among themselves. We attempted to solve this
Hi,
(let bindings form) is a special form. As I understand it, let can be
reformulated in terms of functions e.g.
(let [x 2] (* x 20)) equivalent to ((fn [x] (* x 20)) 2)
(let [x 3 y (* x x)] (- y x)) equivalent to ((fn [x] ((fn [x y] (- y x)) x
(* x x))) 3)
So if we can always reformulate
typo : was=way
--
--
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 patient with your
first post.
To unsubscribe from this group,
Hi,
fn does additional stuff which let doesn't. fn returns an object which you
can store and later call invoke on it. This is more than let promises. From
the implementation point, fn creates java class. This is not needed for let.
JW
On Mon, Jan 20, 2014 at 9:38 PM, Andy Smith
I just submitted a PR to include Immutant in the benchmarks, per a request
from Chas on Twitter, and then I noticed Shantanu filed an issue to include
Undertow, so I created a PR for it, too, since Immutant 2.x will be based
on it.
The tl;dr is that Immutant performs a little worse than the
Hi Xfeep,
What are the good ways to handle some heavy Clojure calculations when using
nginx-clojure?
Under nginx model it's bad to block other incoming requests by holding a
working thread for too long, right?
So is it better to route complex job to http-kit? Or to use some kind of
queue? Or
Hi all,
I've recently released Clidget v0.1.0, a new lightweight CLJS state utility
that allows you to build UIs through small, composable widgets.
Quick links:
- GitHub https://github.com/james-henderson/clidget (README, Rationale
and Getting Started)
- Sample 'counter'
Hi all,
I've recently released *Clidget v0.1.0*, a new lightweight CLJS state
utility that allows you to build UIs through small, composable widgets.
Quick links:
- GitHub https://github.com/james-henderson/clidget (README, Rationale
and Getting Started)
- Sample 'counter'
I might have missed this in the docs, but is there support for c.j.j's
optional keyword arguments such as :row-fn and :identifiers? I couldn't
quite figure out how to get that to work with yesql, as far as I can tell
you can only pass query parameters at this point.
On Thu, Jan 9, 2014 at 3:00
On Monday, November 11, 2013 6:38:23 AM UTC-8, Brenton wrote:
If you are looking for something that is finished and stable then do not
look at Pedestal. We will indicate stability with version numbers. When you
see a release of version 1.0 then you may want to have another look. A 1.0
Hey Andy!
On Mon, Jan 20, 2014 at 12:38:23PM -0800, Andy Smith wrote:
So if we can always reformulate in this was, why cant let be implemented as
a macro rather than a special form?
It can. Quite easily, in fact:
(defmacro my-let [bindings body]
(if (empty? bindings)
`(do ~@body)
On 1/20/14, 12:38 PM, Andy Smith wrote:
Hi,
(let bindings form) is a special form. As I understand it, let can be
reformulated in terms of functions e.g.
(let [x 2] (* x 20)) equivalent to ((fn [x] (* x 20)) 2)
(let [x 3 y (* x x)] (- y x)) equivalent to ((fn [x] ((fn [x y] (- y x)) x
If there's another reason then I'm hoping someone will correct me, but I
can't think of any other reasons at the moment.
Since Clojure doesn't do tail call elimination implementing let atop fn would
also use up stack.
I believe many or all Schemes (which are required by the spec to eliminate
(set! *print-meta* true)
(pr-str (with-meta {} {:type :foo}))
{}
(pr-str (with-meta {} {:class :foo}))
^{:class :foo} {}
Is that how it's supposed to be?
I find that behavior weird and troublesome for those wanting to use the
:type key when serializing data (like me).
--
--
You received
On Jan 20, 2014, at 11:14 , Mars0i marsh...@logical.net wrote:
Just to be clear, Leiningen only eats CPU when started in an arbitrary
directory. When started from a Leiningen project directory, it doesn't use
CPU unless I tell it to. I have not investigated what it is in the project
On Jan 20, 2014, at 09:31 , Zach Oakes zsoa...@gmail.com wrote:
Today I'm releasing play-clj, a Clojure wrapper for LibGDX that allows you to
write games for desktop OSes, Android, and iOS from the same Clojure codebase.
Neat!
How is Clojure’s performance on the latest Android devices? Good
No, didn't see it as a real problem.
Odd. Just checked my MBP, and the CPU-eating behavior doesn't occur on
mine either. Only on the MBA. Both with Leiningen 2.3.4 and Java
1.6.0_65, and same OS (10.6.8--I don't upgrade OSes often). I'll have to
check whether there's something different
You do not need to jailbreak your iOS device, because it isn't actually
running Java. Instead, it uses RoboVM http://www.robovm.org/ to translate
the bytecode into ARM machine code. There are already several LibGDX games
written in Java on the App store.
Regarding performance, play-clj is very
I'm processing a large csv with Clojure, honestly not even that big (~18k
rows, 11mb). I have a list of exported data from a client and I am
de-duplicating URLs within the list. My final output is a series of
vectors: [url url-hash].
The odd thing is how slow it seems to be going. I have
Thanks Jim, that's terrific!
For those following, updated results now
available: https://github.com/ptaoussanis/clojure-web-server-benchmarks
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Take a look at clara-rules by Ryan Brush:
https://github.com/rbrush/clara-rules
Clara pattern matches in the RETE tradition but works very well with
Clojure records and maps (and Java objects.) Depending on how you
expose/insert your data into the working memory will make it easier or
harder
A Southeast Asian eCommerce startup is looking for Clojurians to help build
a data science team.
http://functionaljobs.com/jobs/8671-clojure-data-scientist-at-lazada
Details in link, but if you like to code in Clojure (and other languages)
and are interested in any of the following, please
The relevant piece of code is at
https://github.com/clojure/clojure/commit/6ab23a6e3c4c65868dcf042bd851933202b80f65
:type metadata has a special semantics, see
https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L3338and
49 matches
Mail list logo