270 karma · joined Aug 16, 2013 (13y ago) · 107 submissions
comment 10y ago · link · parent
Since I develop in Scala both are very intuïtive to write.
Apparently Linq for F# is really good as well. As someone else mentioned in a comment.
I get a programming interface that doesn't attempt to hide sql and still my code is fully typed. And it's really easy to make your query logic modular: make the sql fragment a function that you can call. Like any other code you reuse.
I can't think of an advantage of ORM over this functional approach. Apart from ORM being more well known.
comment 10y ago · link · parent
comment 10y ago · link · parent
[1] https://www.typescriptlang.org/docs/handbook/advanced-types.... [2] https://github.com/Microsoft/TypeScript/pull/7140
As a Scala developer I like Typescript a lot. Which is a first for me in browser development.
But I'm not so fond of webpack et al. So I created a sbt-typescript plugin. And now I have incremental compilation of NG2 - Play apps for both the browser side and the server side. In a single build definition. It's a nice experience.
comment 10y ago · link · parent
Are you talking about compromises in the language or the standard library? In the language itself I can only think of type erasure for generics having to follow the JVM choice.
comment 10y ago · link · parent
I did spot the problem. But then I'm in the middle of making sbt behave civily with typescript and angular2.
Of course I could just use webpack or some other javascript buildtool. But I like to have integrated incremental compilation for frontend and backend. And since our backend is Scala I'm working in my weekends on a typescript sbt plugin. I guess I should get out more.
comment 10y ago · link · parent
71.
Apple – losing out on talent and in need of a killer new device(theguardian.com ↗)
2 points · by joostdevries · 10y ago · discuss
comment 10y ago · link · parent
All the same the Schengen treaty is at risk with the current flood of immigrants. [1]
As far as the EU goes: I'm a Dutch citizen. And the NL have a long history of belonging to a coöperation of nations. Just after WWII it founed the BeNeLux. And it was a founding member of the EU later on. So I lived in a supra-national organisation for as long as I live. And I have to say that when I work here in the NL with people from France, Spain, Italy, Germany, ... I truly feel that we're all Europeans. It's some feeling of shared fate, shared history, shared culture, speaking their languages, intuïtively knowing their characteristic strengths and foibles. So as far as I'm concerned even if the current EU would fail we'll just start anew with an EU 2.0. Less expansionist and less idealistic probably. Sadder and wiser surely. But in my estimation the sense of a shared EU identity has become stronger than even the current vicissitudes or the meddling from billionaire investors.
[1] http://www.theguardian.com/world/2016/jan/21/dutch-pm-says-r...
comment 11y ago · link · parent
Just an impression of what goes through me at this point in my life when I read that story. I recognise your take on it as well. It's just that I learned that looking at life like that did not make me happy in the end. And that the feeling of intellectual victory was without substance.
comment 11y ago · link · parent
The last version comes with Slick integration which brings Ling-for-Sql style persistency to the JVM. In combination with support for Postgress JSON persistency that makes for a great fast prototyping stack.
comment 11y ago · link · parent
You can find the gist here. https://gist.github.com/joost-de-vries/949fbea6345fec1ac4ef
comment 11y ago · link · parent
Lucas Rytz' PhD research describes an early incarnation. The syntax will be different: side effects will be modeled as implicit evidence. But the semantis will be largely the same I believe.
I seem to remember that the default will be that if no side effects are declared that any side effect is assumed. At least that was the idea in Rytz' PhD thesis. The reason for this was pragmatics: the only effect system in a main stream language is Javas checked exceptions. And for that the communis opinio ended up being that the idea is right but having to declare exceptions in intermediary layers of the call graph was not worth the effort. That's why f.i. Anders Hjelberg left checked exceptions out off C#. So getting the usability right is extremely important for a widely adopted effect system.
Btw there are a lot of publications around 2012 on the topic of effect systems.
comment 11y ago · link · parent
comment 11y ago · link · parent
If you watch the presentation by Odersky you'll find that the new compiler addresses most if not all the things that Paul Philips mentioned.
For instance the new compiler has 5 phases. Just like javac.
comment 11y ago · link · parent
The compiler is a database in the sense that it has a memory across incremental invocations. So the 'storage' happens to be in memory but could be on disk.
comment 11y ago · link · parent
For running my app I use the revolver plugin that offers the same thing: as soon as I save a file it is compiled and the app is restarted. When I use the Play framework this is supported out of the box: I save my file and refresh in the browser and see the changes.
This works very well.
comment 11y ago · link · parent
I can imagine though that if you want to offer reactive systems with coast-to-coast backpressure you perhaps want to support parts of the system being in, say, Javascript as well.
I'd seriously consider keeping the name and just treating it no longer as a word but purely as a name. I.e. something which dictionary definition is not constraining to the company mission.
comment 12y ago · link · parent
What the reasons are is largely a matter of opinion. In my opinion there are several possible reasons: - the 'semantic' idea of 'strong' modeling of the world lost out to a competing approach that uses probabilistic models. The latter models don't require coordinated effort by humans and thus scale better. - the semantic approach also suffered from academicians myopically going over the same millimeters of theory for decades. And losing sight of matters of practicality. - The fundamentals of the semantic technology seem rather brittle to me. With that I mean that a tiny difference in the reasoning axioms can make the whole reasoning intractable. That might be anti-tethical to the 'tinkering until it works' approach that software engineers often use. - Somehow a broady applicable killer application didn't turn up. But that's a result as much as it might be a reason.
There's still use for the technology though. If you need to unify data that follows subtly different datamodels I'd be hard pressed to think of an alternative. Which makes me wonder whether intelligence agencies use the technology. F.i. I remember a reference given by Oracle of the US Geospatial Intelligence Agency using their quad store. The new moniker 'linked data' emphasises this aspect. Government agencies do struggle with having to relate data that are obviously related but conceptually, legally subtly different. And they do spend quite some attention on linked data. They seem to stay mostly within the RDFS realm and do not stray into more interesting OWL applications. But even in government circles I get a whiff of the solution-looking-for-a-problem vibe that hounded the semantic web for so long.
comment 12y ago · link · parent
That made me wonder whether Google has shifted its products from being the kind of thing that their own employee corps would enjoy to things for the general public. I personally f.i. enjoyed the from: to: keywords in Google Maps search. That feature disappeared and probably the majority of users wouldn't use those anyway. Personally I scorn at a search result of the '100 most beautiful women'. But in the large population it will probably lead to a much higher click through. So I wonder if Google Search was oriented towards the smart crowd niche and that they changed focus towards the common and the populous. To put it differently: a shift from an emphasis in information as high value search result towards including entertainment, gossip etc. High brow to low brow.