Serhii Khoma

Results 139 issues of Serhii Khoma

## Summary functions that are equal to `unsafeCoerce` should in removed during application. ## Motivation to increase speed of compiled js. ## Examples ```purs import Prelude import Unsafe.Coerce testWithoutAlias ::...

type: enhancement

## Summary we want to cache results of ```js var eqArray = function (dictEq) { return new Eq($foreign.eqArrayImpl(eq(dictEq))); }; ``` to the separate file (because caching in one big file...

type: enhancement
optimizer

reopened https://github.com/purescript-halogen/purescript-halogen/pull/671 (but on master branch instead of next-6) _________ re > but in this pull request they make it difficult to see precisely what is changing https://github.com/purescript-halogen/purescript-halogen/pull/671#discussion_r463124371 I have...

before purs 0.13.8 generated ```js var classes = (function () { var $14 = prop(Halogen_HTML_Core.isPropString)("className"); var $15 = Data_String_Common.joinWith(" "); var $16 = Data_Functor.map(Data_Functor.functorArray)(Data_Newtype.unwrap(Halogen_HTML_Core.newtypeClassName)); return function ($17) { return $14($15($16($17)));...

the `requestAnimationFrame` optimisation is described here https://elm-lang.org/news/blazing-fast-html-round-two this is done here [_Browser_makeAnimator](https://github.com/elm/browser/blob/1d28cd625b3ce07be6dfad51660bea6de2c905f2/src/Elm/Kernel/Browser.js#L110) meaning of states (I don't particularly understand) ```purs data State -- no requestAnimationFrame is created, if you see...

from https://github.com/purescript-halogen/purescript-halogen/issues/689#issuecomment-667213253

https://github.com/purescript-halogen/purescript-halogen/blob/3ababd93bff0fe592f3d6ab29b699188dad26d86/src/Halogen/HTML/Elements.purs#L740-L741 should be changed to Node and https://github.com/purescript-halogen/purescript-dom-indexed/blob/c449ae115bffe1fce89e145da62b862ad16ed935/src/DOM/HTML/Indexed.purs#L591 value should be removed ____ because it says here https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea ``` Default content entered between the opening and closing tags. does not...

currently: we call `mkSpec` on each component creation (i.e. `Widget`) here https://github.com/purescript-halogen/purescript-halogen/blob/3ababd93bff0fe592f3d6ab29b699188dad26d86/src/Halogen/VDom/Driver.purs#L64 expected: reuse 1 VdomSpec for each component _____ theoretically creating per each component is not required, but I...

is there any example application with isomorphic / server side rendering? e.g. Pux framework has one https://github.com/alexmingoia/pux-starter-app/tree/isomorphic

I've checked how fast it is on purescript-halogen-realworld and got this ![2020-06-10-11:04:53-screenshot](https://user-images.githubusercontent.com/7573215/84243080-5dcd9c00-ab0a-11ea-9d54-4b87fd1558c7.png) ![2020-06-10-11:05:12-screenshot](https://user-images.githubusercontent.com/7573215/84243084-5efec900-ab0a-11ea-9edf-149d20979980.png) I think using non-curried functions in `runUI` will help what are other suggestions?