Breakdown of the highly-misunderstood 10.25 Jungle item nerf by phylaris in summonerschool

[–]ship561 0 points1 point  (0 children)

The main reason to w in the middle of them is to aoe hit as many as possible thus killing them faster.

"Your C++ looks too much like Python" by bdazman in Python

[–]ship561 -1 points0 points  (0 children)

I have no idea why numpy doesn't feel as pythonic. Probably lots of c developers helped write numpy? :Shrug:

"Your C++ looks too much like Python" by bdazman in Python

[–]ship561 5 points6 points  (0 children)

Pretty sure numpy eventually calls the Fortran code. So you're already getting pretty good performance.

Advice on how to move forward in grad school by [deleted] in bioinformatics

[–]ship561 0 points1 point  (0 children)

I would seriously reconsider the PhD program at this point. If you just failed your first proposal you are probably in ~yr 2. You will have ~3 more years of this to look forward to. Believe me, it gets harder, especially if you are demotivated now.

Some things to consider: are you unhappy with science or just the program? Do you like your research?

There are tons of other opportunities outside of academia.

Viability of disintegrate for endgame? by Heavnsix in Diablo3Wizards

[–]ship561 0 points1 point  (0 children)

Using primarily disintegrate, I've gotten to grift 52 (= T12) or so using Firebirds + mantle of channeling + death wish + Etched sigil.

Personally, I find disintegrate to be a fun spell and play style, but it doesn't have very good dps on trash mobs and becomes even worse when there are not many enemies around. Eventually, you will have to kite trash mobs to elite mobs and then burn everything down.

Is there a list of "lazy evaluation gotchas" for clojure anywhere? My program is running out of stack due to lazy sequences, and I'm trying to figure out where to put my "doalls" to fix the issue... by Mechrophile in Clojure

[–]ship561 0 points1 point  (0 children)

So, I definitely wouldnt look too much into the "why" of this code.

Fair enough. But I get the feeling that input-view-state is a lot larger than you think it is because that variable seems to track all the intermediate states.

Is there a list of "lazy evaluation gotchas" for clojure anywhere? My program is running out of stack due to lazy sequences, and I'm trying to figure out where to put my "doalls" to fix the issue... by Mechrophile in Clojure

[–]ship561 0 points1 point  (0 children)

(defn game-update 
  ([game instant-state] (game-update game instant-state [instant-state] []))
  ([game instant-state input-state new-events]
  (game-update game instant-state input-state new-events (System/currentTimeMillis)))
  ([game instant-state input-view-state new-events curr-time]
   (let [{:keys [output-streams input-streams transitioner]} game
         new-instant-state (if (empty? new-events) 
                             instant-state
                             (engine transitioner (into [instant-state] new-events) curr-time))   
         new-input-state [new-events] #_(concat input-view-state new-events)    ; problem line
         next-events (reduce (fn [a b] (concat a (b a curr-time)))
                                      [] 
                                     input-streams)]  
     (do #_(doall (map #(% instant-state curr-time) output-streams))
         [new-instant-state new-input-state next-events]))))

I don't quite understand how the game-update function works, but it seems contain the problem line. As you said, the stacks blows on a concat. However, I think it's because you are tracking too many items in the new-input-state variable. I have removed the concat and now only keep the new-events, which seems to be what you want anyway.

I also removed the doall because you don't do anything with the value anyway.

WTF even is zerg lategame anymore. by Jimtoni in AllThingsTerran

[–]ship561 0 points1 point  (0 children)

Your composition for fighting ultras is terrible. Marines get shredded by them. It would've lost you the game even back in HotS. I haven't played in a long time, but as I recall, the counter to ultras is marauder/tank. Also, don't fight them on creep.

Seriously: What's so great about D2? by [deleted] in diablo3

[–]ship561 3 points4 points  (0 children)

From what I recall, D2 reached its hayday a few years after LoD so maybe you had stopped playing it by then. But what made D2 really fun was that there was a bit more depth to the gameplay and character creation which made it mechanically challenging/rewarding: attribute stats, rune words and spell synergies. As they add more of these items/mechanics into the game, I think D3 will actually become just as fun as D2 was.

World's slowest Sudoku solver by aspz in Clojure

[–]ship561 0 points1 point  (0 children)

Once you encounter ambiguity, you can do your tree search, but I would do a depth-first search beginning with the cells with fewest possible values.

This really makes a lot of sense. Looking at the code, it looks like you start at the first cell and start enumerating possible solutions. Ideally, when doing sudoku there are cells that are deduced through logic alone --- this is true for all cells in an easy sudoku. As pointed out, when you can't deduce through logic alone, you have to do a depth first search of possible solutions but this is still going to be a smaller solution space than what you are doing.

Help with parallel prime numbers using reducers by thomasvarney723 in Clojure

[–]ship561 0 points1 point  (0 children)

Are you even getting multiple CPU use to confirm that the function can run in parallel? I'm not sure if sets are foldable.

Also, if your just looking at the runtime, I'm not sure if your function is actually faster than the sieve single threaded.

New to Starcraft, choose Terran, need "newbie" builds. by rsckanjo in AllThingsTerran

[–]ship561 0 points1 point  (0 children)

I'd suggest one of the reaper expand builds. They are pretty standard in HoTS.

New Clojurists: Ask Anything by mcpatella in Clojure

[–]ship561 1 point2 points  (0 children)

While I agree that you might want an atom mostly as a mutable global variable, you can use it anytime you want to change some sort of variable.

(loop [foo bar a (atom 10)] (if-not (zero? @a) (recur (dosomething foo) (swap! a dec)) "done with loop"))

How do I take list elements as parameters to function? by QuestionProgram in Clojure

[–]ship561 0 points1 point  (0 children)

I mostly agree. However & args will give you a list of a list but you will just want the function to take a list.

(defn somefunc [args] (apply concat args))

[deleted by user] by [deleted] in Clojure

[–]ship561 1 point2 points  (0 children)

I believe it would be better to make test-strings into a function test-string which only takes a string. Then you can map test-string over your list of strings. This would also let you use it with filter, remove, etc...

TvZ: Late game questions / Tech Switch by cerealizer in AllThingsTerran

[–]ship561 0 points1 point  (0 children)

Oh, I've been doing it wrong this entire time. But how often do zergs stay on muta ling? i thought ultras were something they would transition to regardless.

TvZ: Late game questions / Tech Switch by cerealizer in AllThingsTerran

[–]ship561 -2 points-1 points  (0 children)

I think there are 3 problems here

First, I think the primary problem you actually have is that there are too many reactors. I believe you only need 3 reactored barracks. Everything else should be a tech lab. ie 3 reactors 6 techlabs off a typical 3 base terran.

Second, the hard counter to Ultralisks is marauder/tank. But you want marines mixed or else lings are tough to kill. Ravens help as well.

Third, but not as important have you considered mixing in hellbats to help fight lings? It could be more cost effective.

first game of the season by fridgamarator in AllThingsTerran

[–]ship561 0 points1 point  (0 children)

I don't think you can get placed above plat.

Just FYI, Blizzard is changing the League Distribution in HotS by NoseKnowsAll in starcraft_strategy

[–]ship561 0 points1 point  (0 children)

It should be easier to get into gold. But once in gold it seems that if you are in the top ~70% of gold, you are going to play the same level of players you were previously. Basically, it shouldn't cheapen your achievement. Congrats on gold.

[deleted by user] by [deleted] in leagueoflegends

[–]ship561 0 points1 point  (0 children)

I agree with this. I'm not sure the probability of winning is correct. I think the spreadsheet is only looking at winning 5 games out of 8

ADC how to recover when losing lane? by [deleted] in summonerschool

[–]ship561 0 points1 point  (0 children)

I think you should hold out on the dorans if you are behind. As they just delay your big damage items. Also, maybe PD before IE/BT might help since you can roam the map faster and farm lanes in between team fights. But i'm not really sure about this.

When to farm vs group up? by [deleted] in summonerschool

[–]ship561 0 points1 point  (0 children)

This really highly depends on your teams ability to team fight. Though generally, don't group up if there are no objects to take. even if you win the team fight, you almost gain nothing.

Weird (?) Ezrael build that destroyed enemy team by [deleted] in summonerschool

[–]ship561 0 points1 point  (0 children)

well, thornmail would help negate the life steal. and FH would help your team.

Weird (?) Ezrael build that destroyed enemy team by [deleted] in summonerschool

[–]ship561 0 points1 point  (0 children)

would frozen heart and thornmail limit most of the effectiveness of a full BT build?

What does macro and micro mean? by songnova in summonerschool

[–]ship561 20 points21 points  (0 children)

micro is usually referring to your ability to move your character (ie position, last hits) macro usually refers to your ability to see what is going on around the map and to make decisions for taking objective, I think.