Unsigned long to double and back

2022-11-05 Thread Johannes Kuhn
When I tried to implement an WASM transpiler, I noticed some missing conversion methods from unsigned types to floating point, for example from unsigned long to a double. For the meaning of unsigned long, see Long.toUnsignedString(long i). Converting between unsigned long and floating point is

Re: RFR: JDK-8285932 Implementation of JEP-430 String Templates (Preview) [v13]

2022-11-05 Thread Rémi Forax
On Thu, 3 Nov 2022 17:23:53 GMT, Jim Laskey wrote: >> Enhance the Java programming language with string templates, which are >> similar to string literals but contain embedded expressions. A string >> template is interpreted at run time by replacing each expression with the >> result of evalua

Re: RFR: JDK-8285932 Implementation of JEP-430 String Templates (Preview) [v13]

2022-11-05 Thread Rémi Forax
On Thu, 3 Nov 2022 17:23:53 GMT, Jim Laskey wrote: >> Enhance the Java programming language with string templates, which are >> similar to string literals but contain embedded expressions. A string >> template is interpreted at run time by replacing each expression with the >> result of evalua

Re: RFR: JDK-8285932 Implementation of JEP-430 String Templates (Preview) [v13]

2022-11-05 Thread Rémi Forax
On Thu, 3 Nov 2022 17:23:53 GMT, Jim Laskey wrote: >> Enhance the Java programming language with string templates, which are >> similar to string literals but contain embedded expressions. A string >> template is interpreted at run time by replacing each expression with the >> result of evalua

Re: RFR: JDK-8285932 Implementation of JEP-430 String Templates (Preview) [v13]

2022-11-05 Thread Rémi Forax
On Thu, 3 Nov 2022 17:23:53 GMT, Jim Laskey wrote: >> Enhance the Java programming language with string templates, which are >> similar to string literals but contain embedded expressions. A string >> template is interpreted at run time by replacing each expression with the >> result of evalua

Re: RFR: 8295044: Implementation of Foreign Function and Memory API (Second Preview) [v2]

2022-11-05 Thread Jorn Vernee
On Fri, 4 Nov 2022 18:23:17 GMT, Maurizio Cimadamore wrote: >> This PR contains the API and implementation changes for JEP-434 [1]. A more >> detailed description of such changes, to avoid repetitions during the review >> process, is included as a separate comment. >> >> [1] - https://openjdk

Re: RFR: 8296431 - PushbackInputStream should override transferTo [v3]

2022-11-05 Thread Markus KARG
On Sat, 5 Nov 2022 17:13:14 GMT, Alan Bateman wrote: >> Markus KARG has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Removing synchronization >> - Renamed lock back to closeLock > > src/java.base/share/classes/java/io/PushbackInputStre

Re: RFR: 8296431 - PushbackInputStream should override transferTo [v4]

2022-11-05 Thread Markus KARG
> This PR implements JDK-8296431 Markus KARG has updated the pull request incrementally with one additional commit since the last revision: fixed typo - Changes: - all: https://git.openjdk.org/jdk/pull/10999/files - new: https://git.openjdk.org/jdk/pull/10999/files/f7ee1c7a..

Re: RFR: 8296431 - PushbackInputStream should override transferTo [v3]

2022-11-05 Thread Alan Bateman
On Sat, 5 Nov 2022 08:50:53 GMT, Markus KARG wrote: >> This PR implements JDK-8296431 > > Markus KARG has updated the pull request incrementally with two additional > commits since the last revision: > > - Removing synchronization > - Renamed lock back to closeLock src/java.base/share/classe

Re: RFR: 8294982: Implementation of Classfile API

2022-11-05 Thread Alan Bateman
On Fri, 4 Nov 2022 12:38:04 GMT, Adam Sotona wrote: > This is root pull request with Classfile API implementation, tests and > benchmarks initial drop into JDK. > > Following pull requests consolidating JDK class files parsing, generating, > and transforming ([JDK-8294957](https://bugs.openjdk

Re: RFR: 8296431 - PushbackInputStream should override transferTo [v2]

2022-11-05 Thread Markus KARG
On Sat, 5 Nov 2022 07:19:32 GMT, Alan Bateman wrote: >> Markus KARG has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fixed wrong bug number > > src/java.base/share/classes/java/io/PushbackInputStream.java line 416: > >> 414: Obje

Re: RFR: 8296431 - PushbackInputStream should override transferTo [v3]

2022-11-05 Thread Markus KARG
> This PR implements JDK-8296431 Markus KARG has updated the pull request incrementally with two additional commits since the last revision: - Removing synchronization - Renamed lock back to closeLock - Changes: - all: https://git.openjdk.org/jdk/pull/10999/files - new: https

Re: RFR: 8296431 - PushbackInputStream should override transferTo [v2]

2022-11-05 Thread Alan Bateman
On Fri, 4 Nov 2022 22:24:57 GMT, Markus KARG wrote: >> This PR implements JDK-8296431 > > Markus KARG has updated the pull request incrementally with one additional > commit since the last revision: > > fixed wrong bug number src/java.base/share/classes/java/io/PushbackInputStream.java line