admin-announcements

Announcements from the Clojurians Admin Team (@U11BV7MTK @U077BEWNQ @U050TNB9F @U0ETXRFEW @U04V70XH6 @U8MJBRSR5 and others)
grounded_sage 2015-11-04T03:34:37.000812Z

common_creative

grounded_sage 2015-11-04T03:34:46.000813Z

Woops haha meant to search what I said last šŸ˜›

grounded_sage 2015-11-04T03:36:05.000814Z

@tedhogan: I'm thinking about using Phoenix, Om, Datomic... looking into if they will fit together

ul 2015-11-04T07:06:58.000821Z

@grounded_sage: may be http://joxa.org/ or http://lfe.io/

ul 2015-11-04T07:07:12.000822Z

if you mean Erlang VM by BEAM

2015-11-04T09:12:53.000827Z

Hi guys, I am currently playing a bit with the 4clojure problems and stumbled upon something that works fine in my repl but the website gives me an Error:

An Error occured: timeout
would anyone take a look at it? I donā€™t want to post answers to that openly if not asked for...

ian 2015-11-04T09:33:19.000829Z

@meikemertsch: I would assume that's just JavaScript timing out. Either your computer is slow or your solution is. I would typically assume it's your solution (don't worry, it happens!), but it could be something else. I actually don't remember how 4clojure works technically. Does it timeout when evaluating something client side?

ian 2015-11-04T09:33:54.000830Z

Or do you submit the answer and you get a timeout error? If that's the case could it be something on their side or your network?

2015-11-04T09:35:01.000831Z

the latterā€¦ I have no clue

2015-11-04T09:35:26.000832Z

Itā€™s not something very calculation heavy

2015-11-04T09:35:59.000833Z

see http://www.4clojure.com/problem/195

2015-11-04T09:36:14.000834Z

happens already on the first one

ian 2015-11-04T09:36:50.000835Z

Ah. So you don't get specifically the timeout error if the solution is different? For example if you just try having the solution be some simple function application such as (+ 1 1) you don't get the timeout error?

ian 2015-11-04T09:40:51.000837Z

Or is there an infinite loop in your solution perhaps?

2015-11-04T09:42:00.000838Z

@ian why would it work in my repl then?

ian 2015-11-04T09:42:06.000839Z

Oh hm, you said it worked in the REPL.

2015-11-04T09:42:11.000840Z

exactly

ian 2015-11-04T09:42:26.000841Z

That is interesting. Did you try some bogus no-op solution?

2015-11-04T09:42:26.000842Z

I wonder if that stuff is parsed somehow on 4clojure

2015-11-04T09:42:41.000843Z

I just donā€™t see the issue.

2015-11-04T09:44:37.000844Z

In my repl:

"Elapsed time: 1.419835 msecsā€ 

2015-11-04T09:44:49.000845Z

itā€™s really small

ian 2015-11-04T09:47:13.000846Z

Hm.

ian 2015-11-04T09:47:45.000847Z

Sorry to repeat myself, but the bogus answer? Does any and every solution give the timeout error?

2015-11-04T09:47:57.000848Z

nope

2015-11-04T09:48:07.000849Z

if thereā€™s something wrong the tests fail

ian 2015-11-04T09:48:23.000850Z

But if the solution is right you get a timeout error?

ian 2015-11-04T09:48:45.000851Z

Then surely there is a problem with 4clojure?

2015-11-04T09:49:28.000852Z

I donā€™t know

ian 2015-11-04T09:50:04.000853Z

Yeah, it timed out for me as well. It must be a temporary problem with 4clojure.

ian 2015-11-04T09:50:10.000854Z

Unfortunately

2015-11-04T09:50:31.000855Z

hmmmm

2015-11-04T09:50:34.000856Z

Thanks Ian

jstew 2015-11-04T12:56:13.000860Z

@meikemertsch: That's usually an indication that your solution needs to be optimized. It can be "correct", but not optimized enough to run in the time constraints. It's happened to me too :simple_smile:

jstew 2015-11-04T12:56:49.000861Z

Whoops, I see that you're already answered. My slack just did not refresh yet.

2015-11-04T18:22:47.000869Z

Well, I did exchange my ā€˜iterateā€™ in my solution by a loop/recur with the rest of the code being the same and it worked...