memory heap
352 subscribers
2.42K photos
497 videos
52 files
3.01K links
science ∩ art = wonder

all memory blocks here are allocated by @a_v_p

GitHub: https://github.com/artyom-poptsov
Mastodon: https://fosstodon.org/@avp

https://memory-heap.org/~avp/
Download Telegram
Пакую для Guix различные пакеты, необходимые для сборки Java-программ:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=0d461393e444a993a469b521d4cf46dee9e2767e

\o/

#guix #dev #maven #java
Приняли мой патч в GNU Guix, добавляющий Maven Commons Text:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=583537f2d6b8e5cd7f4b2f6cc7a6d7d2c9aeae7a

Теперь можно попробовать упаковать Maven Doxia Core.

\o/

#dev #gnu #guix #java #maven
Отправил в GNU Guix патч с Java-библиотекой argparse4j:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57913

#gnu #guix #guix_patches #java
👍1
Приняли патч, добавляющий maven-sisu-plugin в GNU Guix:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=fc07082fe3d750c85282c4aa57d01a36ebe9296b

Количество пакетов в GNU Guix на данный момент:
$ guix package -A | wc -l
21379


\o/

#gnu #guix #java
Как-то раз Эрнеста Хэмингуэя попросили написать самый короткий рассказ, способный растрогать любого человека.

;;;
;;; Java bootstrap toolchain.
;;;

;; The Java bootstrap begins with Jikes, a Java compiler written in C++. We
;; use it to build a simple version of GNU Classpath, the Java standard
;; library. We chose version 0.93 because it is the last version that can be
;; built with Jikes. With Jikes and this version of GNU Classpath we can
;; build JamVM, a Java Virtual Machine. We build version 1.5.1 because it is
;; the last version of JamVM that works with a version of GNU classpath that
;; does not require ECJ. These three packages make up the bootstrap JDK.

;; This is sufficient to build an older version of Ant, which is needed to
;; build an older version of ECJ, an incremental Java compiler, both of which
;; are written in Java.
;;
;; ECJ is needed to build the latest release (0.99) and the development
;; version of GNU Classpath. The development version of GNU Classpath has
;; much more support for Java 1.6 than the latest release, but we need to
;; build 0.99 first to get a working version of javah. ECJ, the development
;; version of GNU Classpath, and the latest version of JamVM make up the
;; second stage JDK with which we can build the OpenJDK with the Icedtea 2.x
;; build framework. We then build the more recent JDK Icedtea 3.x, and all
;; other versions of OpenJDK.


Хэмингуэй проиграл спор, но собрал Java.

https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/java-bootstrap.scm?id=aac0605de312ccc854928959530fd77d68723154#n56

#gnu #guix #java #bootstrap #reproducibility
2
Дал студенту задание на курсе по Java: сделать игру про динозаврика и кактусы, как в браузере Google Chrome/Chromium.  Студент прекрасно справился с задачей.

#нртк #java #студенты
🔥71
David J. Eck, "Introduction to Programming Using Java" (Version 9.0, JavaFX Edition):
https://math.hws.edu/javanotes/

Книга по Java + JavaFX, распространяемая под лицензией Creative Commons Attribution-NonCommercial-ShareAlike 4.0.

#books #programming #java #javafx
Взял задачу по разработке приложения на Java + JavaFX. Выбрал Eclipse в качестве IDE. Столкнулся с неприятной проблемой: при добавлении в module-info.java следующих зависимостей:
requires ormlite.jdbc;
requires ormlite.core;


Возникает ошибка:
The package com.j256.ormlite.field is accessible from more than one module: ormlite.core, ormlite.jdbc


Ответ автора библиотеки от 2019 года:
Yeah sorry about that. You can certainly download the source and combine the 2 packages and rebuild. I need to restructure but it's going to break backwards compatibility so I've been holding off.

OK, ладно, обратная совместимость — это хорошо. Но проблема видимо частая, должен же быть лёгкий способ её решения? Верно?

Нет:
https://stackoverflow.com/questions/77158422/eclipse-java-17-setup-issue-related-to-java-9-module-system-the-package-is

Эээх!

#programming #java
👻1