David Barri

Results 110 comments of David Barri

FYI, I've had a million billion things on, tons of work-work and life-work stuff, everyone in the family getting sick every two seconds, but things are settling back down and...

I'm sorry. I forget what I had in mind when I raised this. (I've been sick in bed for 5 days; fever stole my ideas, let's blame that!) All I...

Here's a cool abstract idea: I'd like to be able to define my own optimisations or AST customisation before writing JS. There are a number of optimisations that apply to...

Another instance of use that could be eliminated is `_: XYZ.type` in a `case` clause. Will update head comment.

> What happens if you mark blahName as @inline? Just gave it a try with `@inline`; it doesn't eliminate `XYZ`. > Well here the thing the optimizer sees is `if...

Heh, my suppositions didn't match up at all :stuck_out_tongue_closed_eyes: Your proposition sounds awesome. The only feedback I have is at this part: > writes to the field can be removed....

Ah thank you @carlosribas ! That's a great workaround! It still causes two renders to occur, one unfitted, and then the second one fitted so I'll leave this ticket open....

Ahh now two similar things outside of Nyaya ```scala // HashLogicTest.scala def sizedGroups[C[X] x.gen case x: SizeSpec.Exactly => x.gen case SizeSpec.OneOf(ns) => Gen.chooseIndexed_!(ns) } Gen { ctx => val groups...

I've used Nyaya as-is for stateful testing. The way I did probably isn't obvious - it would be good to make a special API for it, and demonstrate how to...

This is done via [Test State](https://github.com/japgolly/test-state). A little glue module may be helpful though. Maybe that already exists in Test State; can't remember. Regardless, update doc over here.