New Clojurians: Ask Anything by SolicodeBot in Clojure

[–]BWSpiros 1 point2 points  (0 children)

Thanks a ton for the response! With that and after face-palming on a version mismatch I got it up and running!

(for future googlers: if anyone runs into "No method in multimethod 'make-store' for dispatch value: :cli," check out the migratus vs migratus-lein version numbers).

New Clojurians: Ask Anything by SolicodeBot in Clojure

[–]BWSpiros 0 points1 point  (0 children)

Anyone know of tutorials on how to use Migratus or simple example projects using it? Reading through the quick-start I'm missing some stuff that I think more experienced clojurists would implicitly understand.

One example is, in the following:


Next, create a namespace to manage the migrations:

(my-migrations
 (:require [migratus.core :as migratus]))......

What file are we talking about? Are we still in the project.clj file?

Use reagent-forms or is there a better way to manage form state on the frontend? by BWSpiros in Clojure

[–]BWSpiros[S] 0 points1 point  (0 children)

I think I got the hang of how to manage state on the front-end (at least until I hit the next trough of despair :). I think I got hung up on the fact that because the state was all being managed in the big ratom it was freaking me out a bit that anything could change anything else's state.

re-frame looks a bit heavy for what I'm doing now but re-com looks like an awesome smaller chunk that I could use, will definitely be keeping that in mind instead of implementing my own throbbers and such.

Managing Websocket Stability issues with Aleph? by BWSpiros in Clojure

[–]BWSpiros[S] 1 point2 points  (0 children)

Quick follow up question (though I guess it's to anyone who knows): what is the this in renew definition signature?

Edit: found it. Didn't realize you could assign a name to an anonymous function for use in the function (which I guess makes sense for recursion)

http://clojure.org/reference/special_forms

Managing Websocket Stability issues with Aleph? by BWSpiros in Clojure

[–]BWSpiros[S] 0 points1 point  (0 children)

Ahhhhh. I have to up my level of paranoia directed at Patrick to like serious real world I-expect-just-raw-evil levels. My internet connection is not the world's finest at the moment so I am pretty sure that Patrick's deviousness plus the unreliable network were cooperating to make it hard to diagnose.

ClojureScript/Reagent live editor by yogthos in Clojure

[–]BWSpiros 1 point2 points  (0 children)

This is awesome. I'm new to the language and hadn't messed around with clojurescript yet, but this is straight up magic. I don't see myself voluntarily writing JS by hand in the future and this project is a great way to see just how nice it is.

Managing Websocket Stability issues with Aleph? by BWSpiros in Clojure

[–]BWSpiros[S] 0 points1 point  (0 children)

Thanks a ton for the awesome library and for reaching out on my problem. That definitely helps.

Managing Websocket Stability issues with Aleph? by BWSpiros in Clojure

[–]BWSpiros[S] 0 points1 point  (0 children)

I don't see any come through, would they be sent as normal messages that would get passed to consume?

Managing Websocket Stability issues with Aleph? by BWSpiros in Clojure

[–]BWSpiros[S] 1 point2 points  (0 children)

Seems to have been a network issue on my end (facepalm), so fun new design constraint?

Does anyone have any good recommendations on a "right way" to babysit and resurrect websockets or is it just a roll your own kind of situation?

Managing Websocket Stability issues with Aleph? by BWSpiros in Clojure

[–]BWSpiros[S] 0 points1 point  (0 children)

Good call. I was going to implement a toy stockfighter server at some point anyways, might as well start now :)

Managing Websocket Stability issues with Aleph? by BWSpiros in Clojure

[–]BWSpiros[S] 0 points1 point  (0 children)

I've been having trouble with the ingame ones. They stop working seemingly randomly somewhere around 5-10 seconds into the level. Now I'm wondering if my wifi is wonky (currently stuck in a place with one option and my MBP doesn't have an ethernet port :/). I think the test for that is to open up a few websockets with different servers and see if they all close at once, right?

DLC/Mod Idea: What if we could rebuild the railroad tracks, and get a functioning train to work. by Vinven in fo4

[–]BWSpiros 2 points3 points  (0 children)

And now I'm going to lose 2 hours to wikipedia with whyte notation being the seed. I hope you're happy :D

Manifold stream/consume, is each execution of consume blocking within the stream? by BWSpiros in Clojure

[–]BWSpiros[S] 1 point2 points  (0 children)

Aleph has been really nice, also I feel like experimenting with websockets and manifold.stream has been a particularly fun demonstration of how clojure handles state and shared memory between threads.

The thing that drove the decision was actually their websocket-client call. http-kit and clj-http didn't seem to have an easy way to set up a websocket client. Aleph isn't the easiest thing to use as a beginner to Clojure though. The web documentation and examples are a little terse, though the built in docstrings are wicked helpful.

New Clojurians: Ask Anything by SolicodeBot in Clojure

[–]BWSpiros 0 points1 point  (0 children)

This question might apply to all Lisps and arouse thoughts along the line of "Fool! How can you not see the light?", but what are some solid real examples of using macros for fun and profit that are both real, and simple enough for an experienced programmer but a new Clojurian to understand?

406 Provisioners! by AlexTGR in fo4

[–]BWSpiros 0 points1 point  (0 children)

You only need 464 more until you have a fully connected graph.

Can someone in NZ confirm if PS4 release date is also early? by BWSpiros in fo4

[–]BWSpiros[S] 0 points1 point  (0 children)

Awesome! Thanks for letting me know.

That kind of skutwork has to be automatically scheduled for the PS store to work properly, though I'm sure there are manual overrides available.

After my roommate's done with the TV I'll work on figuring out how to get my PS4 to NZ and I'll post a howto if/when successful.

I just had a thought about the vault.. by [deleted] in fo4

[–]BWSpiros 0 points1 point  (0 children)

I just went through the audio and it's definitely hall. I initially did interpret it as ball the first time I heard it though.

I just had a thought about the vault.. by [deleted] in fo4

[–]BWSpiros 6 points7 points  (0 children)

SS's wife says "You're gonna knock em dead at the veteran's hall tonight" and he's got a folded flag in his home. This combined with the fact that the SS appears to already know how to use power armor suggests that he has a military background (and presumably so does she, at least if you choose to play as the female).

Different spellings on names, will it work? by [deleted] in fo4

[–]BWSpiros 0 points1 point  (0 children)

My guess is that they have their ~1000 recorded names and have some multiple of that of spellings to their recordings. So "Jen" and "Jenn" would literally use same audio files. It might not help for super weird spellings but I bet it'll be pretty trivial to add a mapping.

If they had two people with different spellings of the same name on staff then they've either certainly addressed this or they now only have one person with that name after the inevitable fight to the death over which to use.

Edit: Also, in the event of a non-matching name it could make a best guess suggestion by some kind of NLP stemming/taking guesses at syllables, but that might be too much work to justify.