917 karma · joined Nov 17, 2014 (12y ago) · 333 submissions
comment 8y ago · link · parent
This fact caused me to think: should stack also not be made of other languages? Is there a place for a completely pure functional language? I mean, Haskell is nice, but get a bit awkward with I/O. Same for APL. C# has nicely integrated data querying, but from a distance is actually at least somewhat awkward. C# seems to be optimized for mutable domain objects; everything else can be nicely done but falls somewhat outside it's "identity".
I would love to be able to express functions, functors and math using a terse math-y language. Whether that be APL or some sort of blend of Haskell and APL (Haspell? spelling pun intended), I don't care, but it would be great if we can have nice integrations of these languages in a full stack. Sort-of like how TypeScript and JavaScript have dialects to enable React syntax to express HTML within it.
The same thought experiment can be applied to SQL. Can we have a data-querying language integrated right into, say, C# or Java?
comment 8y ago · link · parent
Flow is a nice comparison as it is also backed by a large company. They don't offer a developed IDE in tandem, development pace is a lot lower and language features are not that many compared to TypeScript. The "innovation factor" is a lot lower - of the level I think it's not worth pouring resources into it.
comment 8y ago · link · parent
And this is true for many more languages (Flow, PureScript, LiveScript, IcedCoffeeScript, ...) which don't innovate on many aspects but just offer a slightly different - sometimes improved - syntax. I do recognize that many languages add value, but that must be offset to the cost of using these languages. Costs which are often quite high: Googleability, StackOverflowability, documentation, tooling, develop mindshare, library support, stability - these things don't come cheap and take years to mature.
Furthermore, these "innovate slightly" languages in the webspace take away resources from improving the current state of the art in mainstream (EcmaScript, TypeScript, Dart, C#, Java, ...). For instance, instead of improving some JS tool now resources go into e.g. writing a language server for aforementioned language.
A good example is Elm which does try to innovate on core concepts (builtin reactivity). That's a conceptual feature which can bring the state of the art of programming language design further.
Last, I do not mean that we should not write any more new languages; but we should stop trying to get large-audience adoption for "innovate-slightly" languages. It's a waste of braincycles and actually hurts the ecosystem.
comment 8y ago · link · parent
comment 8y ago · link · parent
1. writing movement-to-pixel latency (should be around 5ms)
2. writing experience (tilting support, pressure levels, anti-aliasing, ...)
3. speed of apps on the device
4. shareability of annotations
5. "stroke-recognition" of diagrams, text, math formula's, etc
6. mashing of touch & pencil gestures
7. apps on the platform
I'd argue that only the Surface 4 solves (1) & (2) completely, with the competition between 75% and 90%. Speed (3) is a solved problem for mobile CPU/GPU/LED/OLED hardware, but e-paper is not close to 50%. (4) is also still quite young, since the "write on digital paper" thing is not even being used by enthusiasts (only some rarae niches show consistent use). (5) is mostly solved for handwriting recognition, and good progress is made on diagrams and math formula's. But it's young, and certainly not yet a commodity. (6) seems quite solved, as most algorithms to distinct between pencils and hand/finger touches work quite well. (7) is not yet solved, there are no good apps. Some exist, but they have "handwriting" as a feature, but not as a core feature.
Color may come in as 8th, but is for most digital authoring not that important. It would certainly increase the potential market for a good e-paper device, but would come last on above list.
In the past 15 years, progress on e-paper display technology has been slow but steady. Is the latency problem solved yet? Or are we still around 100ms?
comment 8y ago · link · parent
In my humble opinion, there should be also a system that ensures increased power is applied correctly. SO does not have this, and that's a major problem.
comment 8y ago · link · parent
Part 1: https://ssj3gohan.tweakblogs.net/blog/11470/why-fuel-cell-ca...
Part 2: https://ssj3gohan.tweakblogs.net/blog/11493/why-fuel-cell-ca...
Part 3: https://ssj3gohan.tweakblogs.net/blog/11556/why-fuel-cell-ca...
Part 4: https://ssj3gohan.tweakblogs.net/blog/11572/why-fuel-cell-ca...
comment 8y ago · link · parent
Lately I was memory profiling an application in Javascript using Chrome. The fact that it used ES6 classes really helped, as some anonymous classes where hard to find memory leaks with, but the typed classes was a simple text query.
I can imagine ES6 classes with decorators may enable specialized optimizations too.
comment 8y ago · link · parent
It would be nice to be able to configure a certain syntax and then have the editor be aware of that syntax. Most editors out there currently only work with a fixed syntax or a fixed set of syntaxes.
comment 8y ago · link · parent
A second example of this culture is the go language. I read a few repo's, and the same style of programming is seemingly applied throughout.
For the Java case, I can actually see operator overloading going haywaire over many codebases. The same as overengineering is a typical trait associated with Java.
comment 8y ago · link · parent
You see this more and more in "test languages" like cucumber. These languages more explicitly allow programmers to specify domain items and behavior, much more so then general programming languages like Jav, C#, js, etc. I'm currently experimenting with a piece of software that actually does have a specific domain language defined using ANTLR. I'm totally unsure of this will make any sense, but at least it is fun to do. One benefit I can see already is that I now have fully typed & typechecked logging :). Another aspect I'm experimenting with is using it as a replacement for sais "test languages".
You can find my grammar here: https://github.com/generateui/jsettlers-web/blob/master/jset...
comment 8y ago · link · parent
const items = ∅; // empty set
if (myItem ∈ items) { ... } // is element of
const union = items ∪ otherSet;
assert items ≌ ∅; // items are all equalcomment 8y ago · link · parent
comment 8y ago · link · parent
HN apparently does not support unicode: https://imgur.com/a/Px2z5
comment 8y ago · link · parent
Good working search solves the problem pragmatically though :)
comment 8y ago · link · parent
It seems that humans have a hard time reasoning with the tag concept. I'm not sure where this comes from; is it decades of working with the folder/subfolder idiom in Windows, where most people are grown up with? Is it the resemblance of the physical world where we also put documents into one folder and one folder only? Or is it our intuition to simplify matters, and therefore seemingly make things simpler to uniquely have items belong to one container? I don't know; most likely, it's all the reasons above plus a few that I didn't mention.