Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grayrest
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
271.
▲
by
grayrest
11y ago
The most important thing about React's update performance is that it's ~O(n) of the size of the virtual dom. If React's performance is a problem you can window the input data, do things more efficiently in your render, tweak
272.
▲
by
grayrest
11y ago
Current stack at work for me is Clojurescript / Reagent / Boot. In JS land, I'm in the React camp. React's model is the biggest step forward on the frontend since jQuery. I stick with React over faster/smaller alter
273.
▲
by
grayrest
11y ago
Ember is IMO second best at everything, which is pretty good for a fully integrated stack. If you don't have a very good idea of what you want to use for all the pieces of your app, you're working with a group of less experienced
274.
▲
by
grayrest
11y ago
CEF is the API used to embed Webkit (now Blink). Servo is Mozilla's new research rendering engine, it's adopting the CEF API to make embedding easier for people.
275.
▲
by
grayrest
11y ago
Doing everything in parallel is pretty much the point of the project. I'm not directly involved but I have been watching the project. There a few specific parts of layout that can't be parallelized[0] but pretty much every page [1
276.
▲
by
grayrest
11y ago
You're in luck. ES6 introduces quasi-literals which are multi-line and will do exactly what you want. You can even tag them to set up parsing. jsx`<div><p>${hello_world}</p></div>` I don'
277.
▲
by
grayrest
11y ago
Are you counting Java IDE keystrokes or actual number of characters on the screen? If it's the latter, I'd be interested in seeing an example since it's very much against the wisdom of the crowds here. My experience is that t
278.
▲
by
grayrest
11y ago
> Why not just make smaller apps, or make smaller things that compose with less knowledge of where they are? The easy answer to this is that successful apps have a tendency to grow larger than expected and splitting them up requires care
279.
▲
by
grayrest
11y ago
It is difficult, which is why Clojurescript adoption didn't really take off until React (via Om) showed up. The whole point of the virtual dom model is to avoid stateful DOM manipulation and instead have view code that is an idempotent
280.
▲
by
grayrest
11y ago
> [C]ould I start using something like ClojureScript instead of Javascript and be able to use the libraries I currently use, like I would with coffeescript? Clojure has an opinionated idea about how data should be handled and changed ove
281.
▲
by
grayrest
11y ago
There's no overhead in caling a C api nor in other code calling Rust code as if it were a C api. There's FFI setup and some caveats both ways but a lot of the larger Rust projects involve (e.g Servo, Piston) interfacing with pre-e
282.
▲
by
grayrest
12y ago
> SpaceX may end up with quite a large number of rockets, which they'll have to fly to establish costs/risks/etc. I assumed this was the motivator for their satellite internet backbone scheme.
283.
▲
by
grayrest
12y ago
It's primarily a bundle maker a la browserify. The main difference is that it stretches the definition of module beyond just javascript. It can seem like a build system because you can set up rules to run a particular filter on a match
284.
▲
by
grayrest
12y ago
You need to know Javascript's quirks. I generally recommend [1] for experienced developers. Everything on that page is important to know (edit: except the perf stuff, which changes as the js engines get better). I'll second the El
285.
▲
by
grayrest
12y ago
The vast majority of things in webdev land work similarly to something else. The trick is to learn the underlying pattern and then just remember the parts that make a specific implementation of the idea different. The exception tends to be
286.
▲
by
grayrest
12y ago
In the intervening years we've accumulated more js2js compilers. IMO the best one is 6to5 [1]. [1] http://6to5.org/
287.
▲
by
grayrest
12y ago
Spectrum rights came up in the announcement video for the opening of the Space X satellite branch. The response was that spectrum to satellite is not scarce as long as roof penetration isn't required. Handset to satellite would work ag
288.
▲
by
grayrest
12y ago
> The conclusion doesn't offer any advise what should be done instead of eval. In case anybody is actually wondering, you almost always want a Function constructor: var add = new Function('arg1', 'arg2', &#
289.
▲
by
grayrest
12y ago
The closest thing to what you're asking about is Pixie [1], which is a Clojure-like language implemented in Pypy's RPython. [1] https://github.com/pixie-lang/pixie It'd be possible to implement a Clojure
290.
▲
by
grayrest
12y ago
Not sure about Elm, but there are businesses using Microsoft's Reactive Extensions. I know Netflix had a series of blog posts on their use of RxJava and I believe they use RxJS as well. [1] http://techblog.netflix.com/2
291.
▲
by
grayrest
12y ago
Flux, as prescribed by Facebook, involves a couple singletons and implementing an action requires coordinated changes across 3-4 files. Many people find this undesirable. The important part about the pattern is the unidirectional data flow,
292.
▲
by
grayrest
12y ago
Most people use underscore/lodash for this stuff. The difference is that the js transducers libraries don't create intermediate arrays, only do enough work to produce the requested output, and work on top of anything that can be c
293.
▲
by
grayrest
12y ago
It's a PhD research project. See the project overview page for specifics: http://pointersgonewild.wordpress.com/higgs/
294.
▲
by
grayrest
12y ago
Depends on what you mean by solid. It uses LLVM for all the codegen and perf is generally in line with C++. The core ideas around traits/borrowing/inference/mutablility have been stable for a while. What's not stable is
295.
▲
by
grayrest
12y ago
The underlying datastructure is a Hash Array Mapped Trie. Searching for "golang hamt" and "golang immutable" turns up a number of results but I didn't look into any of them but they're generally clones of Cloju
296.
▲
by
grayrest
12y ago
> jsx attribute renaming (ex. className="foo" => class="foo") That annoys everybody. It's that way because the JSX attributes map directly onto the DOM attributes which in turn are named that way to avoid ES3
297.
▲
by
grayrest
12y ago
> What use is a component when every design wants it to look different? You can do a lot with CSS, particularly if the component's CSS has a clean divide between structure and appearance. It's pretty common to want a component
298.
▲
by
grayrest
12y ago
I'm not an Ember dev (I generally can't justify a clean slate project) but I do have opinions on the web development landscape: The primary source of incidental complexity in frontend development is synchronizing state. The two ma
299.
▲
by
grayrest
12y ago
Survey says probably not: https://cognitect.wufoo.com/reports/state-of-clojure-2014-re... There was an announcement of Clojure in Unity3d [1] a couple weeks ago which is ClojureCLR. https://github.com/a
300.
▲
by
grayrest
12y ago
It's a less popular reference, but my first impression was wipeout: https://www.youtube.com/watch?v=JWm49PABiUI Particularly the garage video with the techno soundtrack.
More ›