greptilian logo

IRC log for #sourcefu, 2014-10-02

http://sourcefu.com

| Channels | #sourcefu index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:10 pdurbin the lab was https://github.com/jperedadnr/Game2048HOL and the solution https://github.com/jperedadnr/Game2048Solution
00:15 pdurbin by this guy: José Pereda (@JPeredaDnr) | Twitter - https://twitter.com/JPeredaDnr
00:16 pdurbin nice guy, at the glassfish party he was showing off his 2048 game on a tablet he had made himself
00:16 pdurbin José Pereda on Twitter: "Love playing #2048FX on home made tablet. Added context menu with options, no keyboard. @brunoborges @JavaOneConf http://t.co/1o3qcrsY8F" - https://twitter.com/JPeredaDnr/status/513400666476519424
05:53 aditsu joined #sourcefu
16:25 sivoais joined #sourcefu
18:13 pdurbin watching James Gosling at the JavaOne community keynote
18:16 pdurbin Duke's name was Fang until the artist said, "He's friendly; he's not hostile."
18:18 pdurbin weird, it's even at http://en.wikipedia.org/wiki/Fang_%28disambiguation%29
19:18 aditsu joined #sourcefu
19:48 pdurbin_m joined #sourcefu
19:50 pdurbin_m ---
19:51 pdurbin_m next session: Lambda Programming Laboratory [HOL3373] https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=3373
19:51 pdurbin_m List<String> input = Arrays.asList("alfa", "bravo", "charlie", "delta", "echo", "foxtrot");
19:52 pdurbin_m input.forEach(s -> stringBuilder.append(s.charAt(0)));
19:52 pdurbin_m list.removeIf(s -> s.length() % 2 != 0);
19:52 pdurbin_m list.replaceAll(s -> s.toUpperCase());
19:52 pdurbin_m this is pretty fun! :)
19:54 pdurbin_m excercises at https://github.com/stuart-marks/LambdaHOLv2
19:54 pdurbin_m https://github.com/stuart-marks/LambdaHOLv2/blob/master/LambdaLab/test/exercises/Exercises.java
20:02 pdurbin_m Map<String, Integer> input = new TreeMap<>(); input.put("c", 3); input.put("b", 2); input.put("a", 1);
20:02 pdurbin_m input.forEach((k, v) -> sb.append(k).append(v.toString()));
20:02 pdurbin_m it's nice. it's like a kata. getting tests to pass. has hints even
20:03 pdurbin_m and solutions so you can see if they solved the exercises differently: https://github.com/stuart-marks/LambdaHOLv2/blob/master/LambdaLab/test/solutions/Exercises.java
20:17 semiosis i want to lambdafy this - https://gist.github.com/semiosis/98259a02a391a4bae778
20:30 pdurbin_m here are the slides: http://www.slideshare.net/SimonRitter/lambdas-and-streams-hands-on-lab-javaone-2014
20:31 semiosis pdurbin_m: ever heard of the ForkJoinPool?  apparently new in JDK7 but i just found out about it yesterday.  it's so cool!
20:31 semiosis it automagically parallelizes a recursive workload
20:43 pdurbin_m they've been talking about how stream uses fork/join
20:43 pdurbin_m "Another implementation of the fork/join framework is used by methods in the java.util.streams package, which is part of Project Lambda scheduled for the Java SE 8 release" http://docs.oracle.com/javase/tutorial/essential/concurrency/forkjoin.html
20:44 pdurbin_m http://stackoverflow.com/questions/24629247/where-does-say-that-javas-parallel-stream-operations-use-fork-join
20:45 pdurbin_m semiosis: so maybe that's how parallelStream works
20:47 semiosis cool
20:47 semiosis will read up on this later
20:52 pdurbin_m http://programmers.stackexchange.com/questions/250169/is-the-fork-join-framework-a-bad-match-for-the-java-8-streams-api
21:06 semiosis wow.
21:07 semiosis maybe i should do an implementation based on independent workers & a queue
21:07 semiosis see if that does any better than F/J (doubt it will)
21:11 pdurbin no idea
21:14 pdurbin ---
21:14 pdurbin next session: Enterprise Nashorn [CON2266] https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=2266
21:14 pdurbin with Adam Bien (@AdamBien) | Twitter - https://twitter.com/AdamBien
21:15 pdurbin semiosis: have you looked at Nashhorn? It's Javascript on the JVM. Comes with Java 8.
21:15 semiosis yep
21:15 semiosis i tried loading glusterfs-java-filesystem but it didnt work
21:15 semiosis need to revisit that
21:15 pdurbin hmm
21:16 pdurbin go check out the talk description. neat stuff
21:18 semiosis imho the only good thing about javascript is that it's in every web browser.  if i'm not working in a web browser then I dont see any reason to use javascript
21:18 semiosis but i'm eager to see what people more creative than I come up with for it
21:20 pdurbin :)
21:20 pdurbin well, javascript is pretty universal. even more so now that's part of java 8
21:21 pdurbin not that everyone has java (let alone java 8) installed
21:21 pdurbin Douglas Crockford calls Javascript "tragically important" :)
21:21 semiosis he's great
21:25 pdurbin yeah. I watched all his videos on some yahoo js site
21:32 pdurbin talking about https://github.com/AdamBien/enhydrator
21:32 pdurbin Static Page Generator based on Nashorn, Java 8 and Mustache
21:32 pdurbin https://github.com/AdamBien/spg
21:33 pdurbin https://github.com/AdamBien/x-ray
21:34 pdurbin ScriptEngineManager
21:52 pdurbin #!/usr/bin/jjs -fv
21:53 pdurbin he does his scripting with js
21:53 pdurbin runs on windows and linux
21:56 pdurbin var Date = Java.type("java.util.Date");
21:56 pdurbin print("hello " + new Date());
21:56 pdurbin $EXEC("ls -l");
21:57 pdurbin print($OUT)
21:58 pdurbin showing https://github.com/AdamBien/x-ray/blob/master/backup/public_html/backup.js
21:58 pdurbin a mix of Java and Javascript
22:01 pdurbin showing https://github.com/AdamBien/spg/blob/master/spg.js
22:02 pdurbin "spg is used to maintain the http://workshops.adam-bien.com pages"
22:18 pdurbin showing https://github.com/AdamBien/enhydrator/blob/master/samples/json2csv/src/test/java/com/airhacks/samples/json/FromJsonToCSVTest.java
22:38 aditsu joined #sourcefu
23:01 pdurbin ---
23:01 pdurbin next session: Map, Flatmap, and Reduce Are Your New Best Friends [CON1914] https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=1914
23:01 pdurbin with Chris Richardson (@crichardson) | Twitter - https://twitter.com/crichardson
23:02 pdurbin (last session)
23:03 pdurbin collection processing as the gateway drug into functional programming
23:09 pdurbin "I have regarded it as the highest goal of programming language design to enable good ideas to be elegantly expressed." --Tony Hoare at The 1980 ACM Turing Award Lecture
23:10 pdurbin Stevey's Blog Rants: Haskell Researchers Announce Discovery of Industry Programmer Who Gives a Shit - http://steve-yegge.blogspot.com/2010/12/haskell-researchers-announce-discovery.html
23:29 pdurbin Tired of Null Pointer Exceptions? Consider Using Java SE 8's Optional! - http://www.oracle.com/technetwork/articles/java/java8-optional-2175753.html
23:31 pdurbin return Optional.ofNullable(foo)
23:37 pdurbin http://en.wikipedia.org/wiki/Futures_and_promises
23:39 pdurbin Guava ListenableFutures, Spring 4 ListenableFuture
23:39 pdurbin slides will be at http://www.slideshare.net/chris.e.richardson
23:40 pdurbin links to The Netflix Tech Blog: Reactive Programming in the Netflix API with RxJava - http://techblog.netflix.com/2013/02/rxjava-netflix-api.html
23:41 pdurbin http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html
23:44 pdurbin thenComposeAsync, thenApplyAsync
23:44 pdurbin java 8 is missing Future.sequence()
23:45 pdurbin Your Mouse is a Database by Erik Meijer - "Web and mobile applications are increasingly composed of asynchronous and realtime streaming services and push notifications." http://queue.acm.org/detail.cfm?id=2169076
23:46 pdurbin showing RxJava: https://github.com/ReactiveX/RxJava
23:48 pdurbin Rx as futures on steroids
23:59 pdurbin Map/Reduce vs. https://github.com/twitter/scalding

| Channels | #sourcefu index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

http://sourcefu.com