Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
kbr
8y ago
Glad you liked it. If you read some of the original Moon articles (“Introducing Moon”) you’ll find that I was frustrated with other libraries and strived to create a smaller and faster alternative. Now I have worked on designing a new struc
32.
▲
by
kbr
8y ago
For now, it is non-keyed. As I mentioned in some other comments I just wanted to get a beta out as I've been rewriting Moon for about a year and it's finally gotten to a semi-usable state. A keyed implementation, single-file compo
33.
▲
by
kbr
8y ago
Your views are compiled down to JavaScript beforehand. Your example would be compiled to something like: m2.textContent = instance.text; Use Moon.compile(template) to get a better idea of outputs.
34.
▲
by
kbr
8y ago
It’s currently in beta and although that’s no excuse for the lack of warnings I just wanted to get a beta out as I started v1 almost a year ago.
35.
▲
by
kbr
8y ago
It's been rewritten completely and hit 1.0 beta a week ago :)
36.
▲
by
kbr
8y ago
To prevent large bundles, Moon uses a lightweight runtime that is about the same size as the equivalent compiled virtual DOM render function (using React.createElement for example).
37.
▲
by
kbr
8y ago
It's definitely based on preference, but I designed MVL to be as simple and consistent as possible. For example, there are two ways to create a for loop (one on the ul and one on the li). <For={item in items}> <!-- mul
38.
▲
by
kbr
8y ago
Thanks! It used to be a smaller version of Vue aiming to be a small subset of it. For the v1 beta (what the current documentation is for) I decided to change up the API to be something more simple that can still scale well for larger projec
39.
▲
Show HN: Moon – 3kb JavaScript UI compiler
(kbrsh.github.io)
71 points
by
kbr
8y ago
|
50 comments
40.
▲
Moon v1 beta – the minimal and fast UI compiler
(kbrsh.github.io)
6 points
by
kbr
8y ago
|
1 comments
41.
▲
Show HN: Ice – procedural art generator using random equations and noise
(twitter.com)
5 points
by
kbr
9y ago
|
0 comments
42.
▲
Mapping a range of numbers onto another
(blog.kabir.ml)
1 points
by
kbr
9y ago
|
0 comments
43.
▲
by
kbr
9y ago
Linear types are different from immutable types. You can change the value of a linear type as long as you used the previous value somewhere else (for example i = i + 1). Languages like Rust leverage affine types (another substructural type
44.
▲
by
kbr
9y ago
The author of the paper doesn't mean that the concept of linear types will change the world, but states that linear types combined with functional languages will be able to interact with and change the real world (I/O, graphics,
45.
▲
by
kbr
9y ago
During the time of that post, this article was about a simpler example and only explained the trie structure. Wade didn't have the ranking system either. It has since been rewritten to include the methods used to rank the relevance of
46.
▲
by
kbr
9y ago
This isn't an exact pattern searching library. Wade originally used Boyer-Moore, but has since switched to a trie [1] structure to search for _terms_ rather than the whole query. This allows for result documents that can contain some o
47.
▲
by
kbr
9y ago
This is how Wade was originally going to be implemented. I actually had a local version of it using an inverted index and a deterministic acyclic finite state automaton [1]. It was using TF-IDF as well for the rankings. I began to experimen
48.
▲
The math and algorithms behind a search library
(blog.kabir.ml)
202 points
by
kbr
9y ago
|
24 comments
49.
▲
Template Optimization: Moon vs. Vue
(blog.kabir.ml)
7 points
by
kbr
9y ago
|
0 comments
50.
▲
by
kbr
9y ago
I'm confused. Is this a GUI that runs on top of a kernel (like Linux)? What part of it uses NW.js? Using JavaScript for a system like this is generally not a good idea. The garbage collector can interfere at any time and cause all sort
51.
▲
Identifying Product Ideas
(blog.kabir.ml)
6 points
by
kbr
9y ago
|
0 comments
52.
▲
by
kbr
9y ago
I've been seeing Redox develop for a while now, and I've got to say—it's really amazing what such a small group of people can accomplish. They have innovative tools in all sorts of areas of computer science. Including coreuti
53.
▲
by
kbr
9y ago
I did most of my branding by myself (using Sketch), but my family, and a community of students[1] always give me feedback on my projects. I do not have multiple HN profiles (although I have a throwaway account made a while back). However, I
54.
▲
by
kbr
9y ago
Because it was just a tweet. I wasn't expecting a tweet to get to the front page of HN.
55.
▲
by
kbr
9y ago
I agree wholeheartedly. The internet is an extremely useful resource for finding simple courses that teach complex topics.
56.
▲
by
kbr
9y ago
Please. The initial commits on Moon were in 2016, and I was playing around with a forked version of Vue locally in late 2015. I think it's extremely important to know what goes on under the hood of popular libraries. And regarding the
57.
▲
by
kbr
9y ago
You seem like a really nice person with similar interests as me, I'd love to actually get to know you :) I started out with C, definitely didn't know how to write multithreaded code when I was 10 haha. I learned most of that after
58.
▲
by
kbr
9y ago
Alright I'm going to stop replying to these, I'm starting feel attacked. 8. All of my code is not on Github, and there is no reason for me to learn a language simply because I have previous knowledge in Ruby. I chose to learn Crys
59.
▲
by
kbr
9y ago
My parents definitely encourage me to program. Still, sometimes they tell me to go outside, or to try something new. It's like a mixture of encouragement while still trying to keep me from staying online 24/7.
60.
▲
by
kbr
9y ago
Haha yeah, most of the credit goes to my dad. He's a Java programmer. On the other hand, I'm more interested in web development, web design, servers, and systems.
More ›