[Blog]: Clojurescript, Ionic framework, Helix & refx example

2023-03-16 Thread Marko Kocić
Hi everyone, I wrote a third example application of Clojurescript using Ionic framework, Helix react library and refx as re-frame replacement Blog post: https://marko.euptera.com/posts/ionic-clojure-helix.html Source code: https://github.com/markokocic/ionic-clojurescript-todo/tree/blog-post-3

Blog post about using htmx with Kit Framework

2022-07-18 Thread Marko Kocić
Hi everyone, I wrote a blog post explaining the usage of the new :kit/htmx module that can be used to get started with the development of the htmx based applications with kit framework . You can check it out here: https://marko.euptera.com/posts/

Re: Developing Ionic application using Clojurescript

2022-02-23 Thread Marko Kocić
Posted an update to the same blog post how to configure webpack to play together with shadow-cljs, since Ionic framework requires webpack packaging. https://marko.euptera.com/posts/ionic-clojure-todo-example.html Marko Kocić schrieb am Montag, 21. Februar 2022 um 16:00:37 UTC+1: > I wrote

Re: Developing Ionic application using Clojurescript

2022-02-21 Thread Marko Kocić
I wrote an updated tutorial about developing Ionic application using Clojurescript and shadow-cljs, this time completely ignoring Ionic tooling and using trusted Clojurescript tools. https://marko.euptera.com/posts/ionic-clojure-todo-example.html Feedback wellcome. Cheers, Marko Marko Kocić

Developing Ionic application using Clojurescript

2022-02-14 Thread Marko Kocić
I made a blog post with instructions how to use Clojure instead of Typescript or Javascript to develop an application using the latest version of the cross-platform Ionic Framework. https://marko.euptera.com/posts/ionic-clojure.html This should bring another option to develop mobile application

Re: Why clojure does not have pure lazy-evaluation like Haskell ?

2014-07-08 Thread Marko Kocić
Clojure doesn't have lazy evaluation because it is a "few" years younger and didn't want to repeat Haskell's mistake. Even Simon Payton Jones, the creator of Haskel, confessed that, if he would make Haskel again, he would make it strict, and not lazy, but that it's too late to change it. -- Yo

Does Pedestal have a future in the long run

2013-11-07 Thread Marko Kocić
Hi all, I'd like to hear opinions about Pedestal from the people that have been playing more with it. Right now I started looking at it, and like some of the things, but not sure should I invest more time learning it. While I do like some concepts, I'm not sure is it going to became abandonware

Re: Natively Compiled Clojure

2013-01-25 Thread Marko Kocić
On Friday, January 25, 2013 6:12:07 AM UTC+1, Mikera wrote: > > A natively compiled Clojure would be very very interesting (perhaps > targeting LLVM?) > > However it would also be very hard to implement. Clojure depends on a lot > of features provided by the JVM (JIT compilation, interop with J

Re: Why is a non-transient `into` faster than the built-in one?

2012-11-04 Thread Marko Kocić
On Sunday, November 4, 2012 11:41:23 AM UTC+1, Satoru Logic wrote: > > > > On Sunday, November 4, 2012 6:20:37 PM UTC+8, Marko Kocić wrote: >> >> I get big fluctuation in results for bot naive-into and into, ranging >> from 400ms to 1500ms. >> This is proba

Re: Why is a non-transient `into` faster than the built-in one?

2012-11-04 Thread Marko Kocić
I get big fluctuation in results for bot naive-into and into, ranging from 400ms to 1500ms. This is probably because of the GC kicking in and influencing timings. Changing timings to something like: (System/gc) (time (do (into #{} (range 1e6)) nil)) and (System/gc) (time (do (naive-into #{} (ra

Clojure on embedded java?

2012-09-11 Thread Marko Kocić
As you might know, Oracle recently released Embedded Java which purpose is to be used on memory and CPU constrained devices. I see that some people reported that Clojure works with it, and that performance is excellent, but the question is have someone tried using it for non trivial applications

Re: ANN: ClojureScript revision 927 release

2012-01-23 Thread Marko Kocić
Nice. All we need now is clojurescriptone release and lein plugin. -- 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 yo

Re: ANN: clojure.java.jdbc 0.0.7

2011-10-13 Thread Marko Kocić
Looking at the log seems like MS Access doesn't support prepared statements. It shouldn't have anything to do with jdbc. -- 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

Re: Deamons in Clojure (was Re: Clojure vs Scala - anecdote)

2011-09-07 Thread Marko Kocić
Thanks for the tip about jsvc. I'll give it a try. Do you have some script examples to share, since having Linux service is exactly what I need? Thanks, Marko -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Deamons in Clojure (was Re: Clojure vs Scala - anecdote)

2011-09-07 Thread Marko Kocić
While we are at this topic, how do you run Clojure deamons. Do you have some scripts to set it up how? Is there a simple way to daemonize lein project? Regards, Marko -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Distributing ClojureScript Libraries packaging/dependencies

2011-08-09 Thread Marko Kocić
If you mark your public functions with ^:export, even advanced optimization will keep those functions intact. You can campile your library into js, and distribute that file. You can use this compiled file just as any other Closure compatible javascript library. Regards, Marko -- You received t

Re: Are there potential licensing issues of doing a "fully packaged" ClojureScript zip for Windows ?

2011-08-04 Thread Marko Kocić
Well, even better would be able to have ClojureScript distribution as :dev-dependency in leiningen, and lein cljs plugin where you could specify what gets compiled where in project .xml file. Regards, Marko -- You received this message because you are subscribed to the Google Groups "Clojure"

Clojurescript - Javascript constructor and namespace with the same name problem

2011-07-28 Thread Marko Kocić
Hi all, When dealing with ClojureScript and Closure library it happens pretty often that Closure namespace is in the same time constructor for some object. Take a look for this example: (ns notepad (:require [goog.dom :as dom] [goog.ui.Zippy :as Zippy])) First, require forces me t

ClojureScript - why is javascript object array and not a map?

2011-07-27 Thread Marko Kocić
Note the following code that works: (defn ^:export displayPlain [id] (let [h (.getElementById window/document id) txt (aget h "innerText")] (window/alert (str "plain " txt)) (aset h "innerText" "here I am!"))) Here, javascript object "h" is treated as array, and I was able to get

Re: [ANN] ClojureScript

2011-07-21 Thread Marko Kocić
Where is the bug tracker for ClojureScript? For example I would like to report that windows scripts are missing. Regards, Marko -- 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 p

FleetDB or other "NoSQL" store for Clojure?

2011-07-15 Thread Marko Kocić
Hi all, I would like to try out some of those "no-sql" datastores for my next project, and need an advice which one, since I never used the one before. It needs to fulfill at least some of those following criteria, in order of importance: - is nicelly supported by Clojure (by this I mean idiomat

Re: Multiple slime instances in Emacs

2011-07-09 Thread Marko Kocić
On Friday, July 8, 2011 2:56:42 PM UTC+2, Stefan Kamphausen wrote: > > I don't know of any way to have different SLIMEs in one Emacs. In the past > I used to call Emacs with different init-files for that, but it's not nice. > That works, but requires one to restart Emacs every so often. Not so

Multiple slime instances in Emacs

2011-07-08 Thread Marko Kocić
Is there a way to have multiple instances of Slime installed in Emacs in the same time? The problem I have is that there is official Slime git repository, and that slime is used by all Common Lisp implementation. Then there is slime used by swank-clojure, which is more than a year old slime sn

Re: Clojure performance on shootout

2010-10-26 Thread Marko Kocić
It would be very good if 1.3 delivers on its goal, and it is nice to see that performance is important to the core team. Here's the quick test on binarytrees benchmark that I submitted to the shootout. It is not optimized at all, besides eliminating reflection warnings. On my box results for "binar

Clojure performance on shootout

2010-10-26 Thread Marko Kocić
Clojure has recently been added to http://shootout.alioth.debian.org/ benchmarks. I know there are a lot of objections and excuses about this benchmark, but that is defacto go to place when talking about language implementation performance. The problems is that performance is not that great as it

Re: Aleph and Conjure

2010-07-21 Thread Marko Kocić
On Jul 21, 4:38 pm, Janico Greifenberg wrote: > On Wed, Jul 21, 2010 at 4:11 PM, Marko Kocić wrote: > > Something like ring-aleph-adapter, however trivial it might be to > > implement, will help in seamlessly switching existing applications to > > aleph/netty. > > B

Re: Aleph and Conjure

2010-07-21 Thread Marko Kocić
> Clojure, because of the JVM, doesn't tie your hands this way. If you want to > do everything evented go ahead. Do everything with threads? Go ahead. Want > to mix the two designs together like Aleph? Sure. All while not losing the > elegant brevity of a Node.js app. Something like ring-aleph-ada

Re: Databases for a Concurrent World

2010-07-11 Thread Marko Kocić
I'm not sure how relevant the benchmark is, since all it tests in throughput of database insert operations. The combination of insert, update, delete and selects with more even distribution of operations will be much more helpful, but much harder to test. > If the whole premise of the blog post tu

Re: Solving memory problems with Clojure code

2009-06-22 Thread Marko Kocić
Have you tried (.close stream) in the end of let block? On 22 јун, 16:10, BerlinBrown wrote: > I want to make it clear, that it probably isn't Clojure's memory > problem but something with my code. > > Anyway, I was trying to figure out my heap memory goes up so much on > various operations in m

SWT and Clojure through Scala

2009-05-13 Thread Marko Kocić
I was googling looking for the Clojure SWT examples when I found out about some attempts to wrap SWT in Scala. The code seems pretty functional (and functioning) and it seems we can borrow some ideas from there to create some nice SWT DSL in Clojure. Here are the links: - http://johlrogge.wordpre

Re: Git with Google Code

2009-04-29 Thread Marko Kocić
(defn on-windows [x] (use "http://code.google.com/p/msysgit";) 'success) On 29 апр, 10:55, dysinger wrote: > Let me abstract that out a little for you :P > > (defn on-windows [x] >   (format "%s sucks on windows!" x)) > > On Apr 28, 1:36 pm, Rayne wrote: > > > Git still sucks on windows :\

Re: The Path to 1.0

2009-04-28 Thread Marko Kocić
Shouldn't "ant clean" remove all generated files, including jars from the source tree? --~--~-~--~~~---~--~~ 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 To

Post 1.0 features

2009-04-27 Thread Marko Kocić
Since Clojure seems like feature complete for 1.0 release, I am starting to be curious what are the features planned for after 1.0 release? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Standard startup script?

2009-04-16 Thread Marko Kocić
I have seen various scripts to start clojure in the net. Everyone seems to have its favourite, even contrib has one. Also, there are a lot of questions what is the "bestest" way to invoke clojure, how to start REPL, how to run script, compile file, should it be used with server or client VM. Do y

Clojure and swank on Android?

2009-03-27 Thread Marko Kocić
After some googling I found out that some people were able to run Clojure on Android phones. Did anyone tried to port swank to Android? It might seem like a good idea to start swank server on the phone, connnect with slime, and have good old live programming environment. Regards, Marko Kocić

Re: oo

2009-03-26 Thread Marko Kocić
On 25 мар, 21:41, mikel wrote: > Tinyclos is decent, and lots of people have made good use of it. For > example, it's a "standard" extension to Chicken Scheme (insofar as > anything to do with Chicken Scheme can be called "standard") and has > lots of enhancements provided by Felix. I'll take

Re: oo

2009-03-25 Thread Marko Kocić
closette as clos implementations, but actualy never looked at them. Regards, Marko Kocić --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Witch Emcas for Windows to use with Clojure

2009-03-11 Thread Marko Kocić
Or you can compile emacs from CVS for yourself. It's not that hard as it used do be. --~--~-~--~~~---~--~~ 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 To un

Re: new Clojure article

2009-03-02 Thread Marko Kocić
ht of code. Thanks, Marko Kocić --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email

Re: The Application Context Pattern

2009-02-27 Thread Marko Kocić
> > The cells implementations I've seen posted to this list (in fact pretty > > much all > > cells reimplementations) haven't yet approached the sophistication of > > kenny-cells. > > Agreed.  And I wrote two of them.  They're just toy implementations so > far. I'm still not sure how it should l

Re: Waterfront 148 (was: Waterfront - The Clojure-based editor for Clojure)

2009-02-27 Thread Marko Kocić
Nice work. I have a couple of (mostly cosmetic but important suggestions): - Set look and feel to NativeLookAndFeel - Allow user to increase application fonts, not just editor fonts. Regards, Marko Kocić --~--~-~--~~~---~--~~ You received this message because

Re: The Application Context Pattern

2009-02-27 Thread Marko Kocić
Interesting approach, nice explained. Does anyone have similar example using one of the cells implementations? What would be pros/cons between this and cells approach? Regards, Marko Kocić --~--~-~--~~~---~--~~ You received this message because you are

Re: Clojure on CLR/DLR

2009-02-18 Thread Marko Kocić
On 18 феб, 15:13, dmiller wrote: > When the rough edges are filed off, it should distributable as a set > of DLLs (and a console EXE)  like any other .NET application.   It > should be able to follow the DLR to Mono. > You mean DLR can create executables that don't need .NET runtime? --~--~---

Re: Clojure on CLR/DLR

2009-02-18 Thread Marko Kocić
If only there were C/C-- port of clojure which will keep all of clojure ideas and instead of java use '.' for easy access to C/C++ libraries/functions. And it should also be able to compile to native code and create native executables. Just dreaming... On 18 феб, 04:54, dmiller wrote: > My than

Re: Common Lisp format function is now fully* CL-compatible

2009-01-29 Thread Marko Kocić
Tom Faulhaber је написао: > The cl-format library now implements the full* Common Lisp spec for > format (* = with the exception of a couple of things used by the > internals of the CL pretty printer). Any plans to include it in clojre-contrib? --~--~-~--~~~---~--~--