Entry tags:
PHP for z/OS
Добрые ребята из IBM сделали то, чего (вероятно) ждало все прогрессивное человечество: они портировали PHP 5.1.2 под z/OS. Я даже не знаю -- плакать или сменяться.
(См. полный текст)
It's very impressive --- no surprise since Guy Steele is deeply involved. There are a several important ideas:
- Major syntax and Unicode work to make it possible to write code in mathematical notation
- Traits-based object system
- A units type system for scalars (e.g., "x := 10 kg/s")
- Very powerful generics, with static value parameters as well as type parameters, and very free usage of "where" constraints
- Explicit component programming mode
- Various kinds of built-in parallelism, in particular, "for" loop iterations run in parallel by default
- Inter-thread communication via "atomic" blocks, not locks, reduction operators, and the ability to use explicitly spawned threads as futures
asadmin jdbcОтвет системы:
CLI001 Invalid Command, jdbc. Closest matched command(s): create-jdbc-connection-pool create-jdbc-resource delete-jdbc-connection-pool delete-jdbc-resource list-jdbc-connection-pools list-jdbc-resources Use "help" command for a list of valid commands....а для совсем крутых -- возможность использовать регулярные выражения:
asadmin "^create.*resource$"Мне искренне стыдно, что не я это придумал.
The final aspect of nullable types to be aware of is that they can make use of the C# 2005–specific ?? operator. This operator allows you to assign a value to a nullable type if the retrieved value is in fact null.И приводится пример, показывающий, что автор не очепятался, а имел в виду именно это:
int? myData = dr.GetIntFromDatabase() ?? 100;Однако такое применение -- для присваивание nullable-переменной -- вообще лишено смысла. Ей можно присвоить значение и без этого изыска. Оператор ?? добавлен для строго противоположной цели: присвоить значение обычной -- не-nullable -- переменной. Т.е.
int myData = dr.GetIntFromDatabase() ?? 100;Так что книжку эту действительно нужно читать с большой осторожностью. И уж точно не могу порекомендовать ее в качестве учебника...
The Buddha is wise, terse, and serious.
The Buddha is fat, hairy and jovial.
Both of these statements are true.
Lisp, by contrast, is just plain ugly.
There are ways of making OOP smart, we have been talking about fluent interfaces, OO design patterns, AOP and higher level of abstractions similar to those of DSLs. But the real word is *productivity* and the language needs to make your user elegantly productive.
Actually, Erlang systems are not scalable and reliable. Java systems are. Erlang systems are simply rock solid.
Built on SWTSwing, "Eclipse on Swing" is a project to run Eclipse using Swing widgets exclusively.Как говорится, спешите видеть...