This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-09
Channels
- # aws (4)
- # bangalore-clj (1)
- # beginners (94)
- # boot (19)
- # cider (42)
- # cljs-dev (21)
- # cljsrn (4)
- # clojure (142)
- # clojure-austin (10)
- # clojure-greece (25)
- # clojure-italy (14)
- # clojure-russia (14)
- # clojure-serbia (13)
- # clojure-sg (6)
- # clojure-spec (74)
- # clojure-uk (69)
- # clojurescript (236)
- # consulting (1)
- # cursive (26)
- # data-science (6)
- # datascript (2)
- # datomic (31)
- # editors (5)
- # emacs (24)
- # funcool (5)
- # hoplon (8)
- # jobs-rus (1)
- # luminus (12)
- # lumo (17)
- # off-topic (90)
- # om (45)
- # onyx (5)
- # pedestal (2)
- # powderkeg (12)
- # protorepl (2)
- # re-frame (30)
- # remote-jobs (2)
- # ring-swagger (17)
- # rum (46)
- # slack-help (1)
- # test-check (2)
- # yada (62)
kooky: https://arstechnica.com/gadgets/2017/05/googles-fuchsia-smartphone-os-dumps-linux-has-a-wild-new-ui/ kinda anazing that people keep inventing new OSs. you'd think we would have that figgered out by now.
I guess it's always fun to play with new toys...... until your life depends on it 🙈
Still havent got time to play with their new Flutter mobile SDK that's based on Dart running on DartVM instead of Android's Java on Dalvik.....
@mobileink Dart is not JS, they are completely incompatable even though the v8 engine and DartVM teams share most devs and works similarly under the hood.
Google tried pushing the DartVM into browsers before (Dartium browser), that kinda failed and now you can compile Dart to JS but they are just doing it for browser compatibility
I've used Dart in production around a year ago and it has this JS FFI that kinda works but it's nowhere near Clojure-JS interop.... I ended up rewriting the whole code base in Clojure.
in the browser? seems like there are only 2 options: either the user installs a plugin (flash), or it all ends up as js (the machine code of the web). the former seems like a losing proposition.
but Flutter is a whole different beast.... the mobile OS seem to be running a DartVM directly just like Android's Dalvik
not sure how many people actually want to use this dart thing when it doesn't really work with any existing stuff..... then again, go worked so maybe this will too if google pushes hard enough
you mean Fuchsia is a whole 'nother beast? Flutter is an SDK according to the website, i guess that means a Dart SDK? As I understand it Dart is Just Another Language targeting js, originally, and now retargeted to Fuchsia.
I just want a single language that lets me write web apps + native ios + native android apps.
web, ios, android are three platforms; I wonder why no one has taken the appraoch of "one language three apis"
at the end of the day, I don't want to program vs the common parts of web, android, ios; I want to use all the apis of all three; and I want to do it from the comfort of clojure
@mobileink : oh, so it's not named after Oedipus, the "Net Rexx" is meant to be "King of the Net" ?
it was the first non-java language to target the jvm, believe it or not. Fabulous language, the inventor Cowlishaw is in Rich Hickey territory.
yes, originally it was entirely imperative. NetRexx (like ObjectRexx) was of course adapted to OO.
It was designed as a language for humans, and is by a good margin the best I've ever seen on that count.
take a look at the "parse" examples at https://en.m.wikipedia.org/wiki/Rexx
whoa, just the opposite of perl! Rexx was designed to be easy to read and write, and Cowlishaw was an IBM Fellow back when that was a big deal.
Ask HN: Who’s using Clojure, and to do what? https://news.ycombinator.com/item?id=14302762
I know perl is atroscious for being "write-only" but its flexible syntax actually allows you to craft perl code that reads like english...
as an example see the "strip" function at http://www.rexxinfo.org/html/functions.html and ask yourself why Clojure does not have such wonderfull stuff.
Seems like a clj targeting wasm is some kind of inevitability, eventually, right? Even if fuschia wins out in the future and dart grows, wasm is likely to be performant there. It seems like most future languages will just target wasm in the future.
@akiroz rexx/strip also gives you the choice or leading, trailing, or both. a wonderful thing for people who just want to do that without dealing with algorithms. programming with a human face.
clojure's string support is a little depressing, considering what a huge bang you gwt for your buck with noobs.
@mobileink trim = both triml = leading trimr = trailing 😉
of course it's trivial in clojure, but that's the point. if it's,so easy, why do i have to bother?
yes, definitely a matter of api aesthetics. RH is a minimalist, except when he's not. Threading macros?
considering how common string ops are, it's mildly shocking to discover that clojure largely ignores them, while going to great lengths to sugar more complex stuff.
You could argue: Clojure doesn't solve trivial problems, it makes solving trivial problems trivial
ever since reader conditionals there has been an effort to port string interop to clojure.string functions
icon is another language optimized for string handling. personally i'd like to see clojure take stringiness more seriously and learn from both rexx and icon.
depends on your use case. why should clojure not be the string manip. language par excellance?
Good string handling would definitly be a nice thing to have, I'm still using perl as my de-facto string manipulation language (but also partly because it's pre-installed in many places)
make it real easy for noobs to do fun stuff with strings painlessly and you get a whole bunch of afficianados.
> "Optional" is everywhere > > Most of the API changes in Jigsaw use java.util.Optional for getter return values as a substitute for null-checking. Opinions of this feature vary widely, and general usage of it in this sort of context remains controversial. Several changes to this class which are intended to address outstanding issues have been introduced in Java 9, and are not yet considered battle tested best practices. > > Quotes: > "Of course, people will do what they want. But we did have a clear intention when adding this feature, and it was not to be a general purpose Maybe or Some type, as much as many people would have liked us to do so. Our intention was to provide a limited mechanism for library method return types where there needed to be a clear way to represent "no result", and using null for such was overwhelmingly likely to cause errors. > > "For example, you probably should never use it for something that returns an array of results, or a list of results; instead return an empty array or list. You should almost never use it as a field of something or a method parameter. > > "I think routinely using it as a return value for getters would definitely be over-use." - Brian Goetz in this post to StackOverflow This just kills me, after all that folks warned about making this class anemic for any scenarios by not picking a side or hiding it if it was 'only for streams'. And then they go and use it in one of the cases they most strongly decried? I swear, the OpenJDK mailing list is a laughing stock where advice or warnings from Java users goes to die.