Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
judofyr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
78 ms
·
391.
▲
by
judofyr
11y ago
The browser is the primary product to the Chrome team. Does it make any difference?
392.
▲
by
judofyr
11y ago
I use TheFreeDictionary a lot. Just type "tfd.com/<word>" and it gives you multiple definitions from different dictionaries. Example: http://tfd.com/intelligent
393.
▲
by
judofyr
11y ago
The example on the front page includes this line: int default_out_device_index = soundio_default_output_device_index(soundio); Is that what you're looking for? Or something else?
394.
▲
by
judofyr
11y ago
Yeah, I think they can do more harm with .ssh/id_rsa than with .history.
395.
▲
by
judofyr
11y ago
> Does Imba also include a dom-diffing algorithm Yes. > Woudnt it be better to write a library in imba-lang that can do dom diffing? It is: https://github.com/somebee/imba/blob/master/src/imba&
396.
▲
by
judofyr
11y ago
What part of the diffing? Imba only uses `===` for diffing. If you want Imba to re-use a DOM node, you must use the same tag object. Imba provides syntax for caching nodes as properties on the current object. For instance, in order to re-us
397.
▲
by
judofyr
11y ago
Unfortunately we were too busy building actual applications. In total it probably sums up to a number in the magnitude of 100k LoC. EDIT: But yes: Docs are lacking, and that is a reason for you to not pick Imba for a project right not. We&#
398.
▲
by
judofyr
11y ago
> The lack of docs is a showstopper for me, however. That's a fair criticism. We know that docs are severely lacking. But at one point you'll have to release it. The reason it's been private for all these years is because
399.
▲
by
judofyr
11y ago
Imba supports the syntax for IDs and classes: <label#foo.bar .baz=isBaz> "Label" compiles to: ti$('label','foo').flag('bar').flag('baz',this.isBaz()).setText("Label
400.
▲
by
judofyr
11y ago
There's one historic reason (it wasn't widely available when Imba was started). Another reason is performance: the last time we benchmarked this `defineProperty` was slower than regular function calls. Maybe it's improved now
401.
▲
by
judofyr
11y ago
Yup, that looks pretty good. Imba was started before React was available so it wasn't an option back then. As for today, the language integrates tags in a much nicer way than what's possible with CoffeeScript + React. This especia
402.
▲
by
judofyr
11y ago
1. Because the semantics are quite different. See my other post. 2. It's still nice to separate the attributes from the content: <h1 title="hello"> "Foo" Why use a new syntax when everyone knows HTML&
403.
▲
by
judofyr
11y ago
Imba includes syntax for tags (scroll down to "Tags"), virtual DOM diffing, event handling (with touch support). Yes, React is not a language in itself, but there's quite big overlap in what Imba does and what React+JSX does.
404.
▲
by
judofyr
11y ago
There's two parts of the "very efficient rendering": 1. It store the previous rendered tag and does a diff. (Just like React). 2. Every tag is compiled to JavaScript that's easy for the optimiser. tag event < di
405.
▲
by
judofyr
11y ago
Imba was actually forked from CoffeeScript three years ago. After the fork there's been a bunch changes, both in terms of adding tags, but also when it comes to the object model and variable scope. - Implicit calling: `foo.bar` calls `
406.
▲
by
judofyr
11y ago
Disclaimer: I've been following the development of Imba while it's been a private project (for six years now). Lately I've been helping out fixing bugs and improving smaller parts of the language. Having tags as a proper part
407.
▲
Imba – A new programming language for the web
(imba.io)
319 points
by
judofyr
11y ago
|
171 comments
408.
▲
by
judofyr
11y ago
As someone who frequently travels on the tube: The rule persists.
409.
▲
by
judofyr
11y ago
This is a good explanation: https://www.reddit.com/r/programming/comments/3en2px/til_you...
410.
▲
by
judofyr
11y ago
You can setup a Content Security Policy in your web server that will only allow the browser to load scripts from some domains/subdomains.
411.
▲
by
judofyr
11y ago
You need to upgrade your Ruby version. The object id of `nil` is 8 these days :)
412.
▲
by
judofyr
11y ago
For me it's only preserved if I press left-right or right-left quickly. I'm guessing it's intentional. It would be nice if it kept the state though.
413.
▲
by
judofyr
11y ago
I find this an interesting perspective because I prefer reading linear graphs. Show me a linear graph and explain the axes and I'll easily see what kind of distribution it is. Show me something that grows non-linearly and I would have
414.
▲
by
judofyr
11y ago
http://github.myshopify.com/
415.
▲
by
judofyr
12y ago
Might as well use inline styling to accomplish the same (without adding tons of CSS): <div class="bar-chart"> <ul> <li style="height:99%">99%</li> <li style=&qu
416.
▲
by
judofyr
12y ago
Pathogen doesn't manage your plugins. You have to `git clone` (or submodule) and update them yourself.
417.
▲
by
judofyr
12y ago
Hm. How does React take a more indirect approach than the approach in this paper? Reading the code examples it seems to use callbacks (and thus events) for handling clicks and taps.
418.
▲
by
judofyr
12y ago
$ ruby -e 'puts (0...3).to_a' | ruby -ne 'p $_.to_i*7' $ ruby -e 'puts (0...8).to_a' | ruby -ne 'puts $_ if $_.to_i % 2 == 0'
419.
▲
by
judofyr
12y ago
Every year or so I repost this. Hopefully you'll find something interesting in here. https://news.ycombinator.com/item?id=6078221 --- Hacker News stories which contains plenty of book recommendations (sorted by points,
420.
▲
by
judofyr
12y ago
Ah right. Good point. Thanks.
More ›