|
Translate
Показ дописів із міткою java 8. Показати всі дописи
Показ дописів із міткою java 8. Показати всі дописи
понеділок, 16 червня 2014 р.
Java 8: Stream Style. Live Webcast
четвер, 5 червня 2014 р.
Java 8 StampedLocks vs. ReadWriteLocks and Synchronized
Synchronized sections are kind of like visiting your parents-in-law. You want to be there as little as possible. When it comes to locking the rules are the same – you want to spend the shortest amount of time acquiring the lock and within the critical section, to prevent bottlenecks from forming.
The core language idiom for locking has always been the synchronized keyword, for methods and discrete blocks. This keyword is really hardwired into the HotSpot JVM. Each object we allocate in our code, be it a String, Array or a full-blown JSON document, has locking capabilities built right into its header at the native GC level. The same goes for the JIT compiler that compiles and re-compiles bytecode depending on the specific state and contention levels for a specific lock.
The problem with synchronized blocks is that they’re all or nothing – you can’t have more than one thread inside a critical section. This is especially a bummer in consumer / producer scenarios, where some threads are trying to edit some data exclusively, while others are only trying to read it and are fine with sharing access.
вівторок, 3 червня 2014 р.
8 Great Java 8 Features No One's Talking about
If you haven’t seen some of the videos or tutorials around Java 8, you’ve probably been super-busy or have a more interesting social life than I do (which isn’t saying much). With new features like lambda expressions and Project Nashorn taking so much of the spotlight, I wanted to focus on some new APIs that have been a bit under the radar, but make Java 8 better in so many ways.
1. Stamped Locks
Multi-threaded code has long been the bane of server developers (just ask Oracle Java Language Architect and concurrency guru Brian Goetz). Over time complex idioms were added to the core Java libraries to help minimize thread waits when accessing shared resources. One of these is the classic ReadWriteLock that lets you divide code into sections that need to be mutually exclusive (writers), and sections that don’t (readers).
середа, 19 березня 2014 р.
JDK 8 Is Released!
Сьогодні відбулась найбільш значніша зміна в Java з часів релізу Java 5(Вересень 30, 2004)
Офіціний реліз Java 8.
Work on features in the prototype Java SE 8 Reference Implementation (JDK 8), was organized in terms of JDK Enhancement Proposals (JEPs).[141]
Посилання на статтю реліза: https://blogs.oracle.com/thejavatutorials/entry/jdk_8_is_released
Офіціний реліз Java 8.
Work on features in the prototype Java SE 8 Reference Implementation (JDK 8), was organized in terms of JDK Enhancement Proposals (JEPs).[141]
- JSR 335, JEP 126: Language-level support for lambda expressions (officially, lambda expressions; unofficially, closures) under Project Lambda.[142] There was an ongoing debate in the Java community on whether to add support for lambda expressions.[143][144] Sun later declared that lambda expressions would be included in Java and asked for community input to refine the feature.[145]
- JSR 223, JEP 174: Project Nashorn, a JavaScript runtime which allows developers to embed JavaScript code within applications
- JSR 308, JEP 104: Annotations on Java Types for Unsigned Integer Arithmetic[146]
- JSR 310, JEP 150: Date and Time API
Посилання на статтю реліза: https://blogs.oracle.com/thejavatutorials/entry/jdk_8_is_released
неділя, 19 січня 2014 р.
Oracle ships Java 8
Oracle has decided to ship upgrade to JDK (Java Development Kit) 8 on March 18, even though the new release may come with a few bugs, as introduced by Full speed ahead: Oracle to ship Java 8 in March, even with bugs.
Oracle JDK 8 release manager, Mathias Axelsson has explained that for the initial JDK 8 release, which will be based on Java Platform, Standard Edition 8, only “showstopper bugs” will be the ones to be fixed, whereas a later release will include fixes to “non-showstopper” bugs.
Axelsson also said that JDK 8 builders have been working hard so as to reach a point of first release by next week. A first release candidate is almost ready and is planned to be built before January 23, since they have overcome most difficulties.
In the past, Java versions have been released with bugs again. Java SE 7 was released in 2011 with compiler problems. Java client security issues have come up too, but Oracle has been trying to fix them and has already released plenty of fixes for Java SE. Oracle took over stewardship of Java when it acquired Java founder Sun Microsystems in early-2010.
John Rymer, of Forrester Research points out how good it is that Oracle informs about JDK 8 status, leaving bad surprises away.
Oracle has delayed the release of JDK 8 due to an increased focus on security. JDK 8 is based on Java Platform, Standard Edition 8, with features like Project Lamda, that allows to boost multicore programming capabilites. Project Jigsaw is another feature for modularity that is about to be included in Java SE 9 release.
вівторок, 29 жовтня 2013 р.
JDK™ 8 Early Access Releases + Bonus
Якщо Ви ще не пробували JDK 8 і не знаєте де її знайти.
Вам сюди: https://jdk8.java.net/download.html
JDK 8 для різних платформ
І невеликий буонс. JavaOne 2013 Roundup: Java 8 is Revolutionary, Java is back
Вам сюди: https://jdk8.java.net/download.html
JDK 8 для різних платформ
І невеликий буонс. JavaOne 2013 Roundup: Java 8 is Revolutionary, Java is back
четвер, 6 червня 2013 р.
Run your Java 8 Code in WEB
Сторінка де можна виконати код написаний на Java 8 і отримати результат
Адреса сайту: http://tryjava8-t20.rhcloud.com/#
Адреса сайту: http://tryjava8-t20.rhcloud.com/#
понеділок, 22 квітня 2013 р.
Bad news Java 8
Ходять чутки, що це знову відбулось. Реліз Java 8 знову відтягується.
Цього разу причиною виступають велика кількість робіт по усуненняю дир в безпеці старіших версій Java.
Деталі: http://mreinhold.org/blog/secure-the-train
Цього разу причиною виступають велика кількість робіт по усуненняю дир в безпеці старіших версій Java.
Деталі: http://mreinhold.org/blog/secure-the-train
вівторок, 5 лютого 2013 р.
пʼятниця, 28 грудня 2012 р.
Project Lambda in Java SE 8
В наздогін до минулої зустрічі презентація від куратора проекту
Резюме:
Daniel Smith розказує про Project Lambda включно з лямбда виразами, методами по замовчуванню і паралельними колекціями, що буде частиною майбутньої Java SE 8.
Біографія
Daniel Smith працює в Oracle дизайнером мови Java і розробником компілятора. Зараз він курує роботу над специфікацією JSR 335: Lambda Expressions. Він здобув ступінь PhD in Computer Science в університеті Rice досліджуючи виведення типів в об'єктно-орієнтованих мовах.
Project Lambda in Java SE 8
Резюме:
Daniel Smith розказує про Project Lambda включно з лямбда виразами, методами по замовчуванню і паралельними колекціями, що буде частиною майбутньої Java SE 8.
Біографія
Daniel Smith працює в Oracle дизайнером мови Java і розробником компілятора. Зараз він курує роботу над специфікацією JSR 335: Lambda Expressions. Він здобув ступінь PhD in Computer Science в університеті Rice досліджуючи виведення типів в об'єктно-орієнтованих мовах.
Підписатися на:
Дописи (Atom)

