[go-nuts] Re: Java to Go converter - 2

2022-08-22 Thread alex-coder
Hi, sorry for delay. Despite my great interest in this task, I can not spend a lot of time on the project. But you're right, everything I've posted on go-nuts shows that conversion is very possible and in the same context that you're considering, if I understand you correctly of course . So far

[go-nuts] Re: Java to Go converter - 2

2022-08-18 Thread Oliveira Jose Carlos de - ICTS BSA
Hi, I´m looking foward to find a Tool able to convert any Java Source code Project to a GoLang Project. I know that are Programming languages created for different propposal. Java is OOL and goLang is different. So convertion is possible, but I think is very complex. For me is much more easy

[go-nuts] Re: Java to Go converter - 2

2022-05-21 Thread alex-coder
So, channels. Converter can now convert Java classes to Go channels where possible. The previous example contains a Drop class that matches the conversion criteria, as shown in the Go example code below. Accordingly, if the converter "does not find" a class suitable for conversion, Java multith

[go-nuts] Re: Java to Go converter - 2

2022-05-18 Thread alex-coder
Henry, thank you, it is quite possible that you are right, at least I should check it out. Thank you again. среда, 18 мая 2022 г. в 07:39:49 UTC+3, Henry: > Kudos to you. Java to Go is a lot of work. Java is a more complex > language. It has more features and more possibilities for expressing

[go-nuts] Re: Java to Go converter - 2

2022-05-17 Thread Henry
Kudos to you. Java to Go is a lot of work. Java is a more complex language. It has more features and more possibilities for expressing the same model/algorithm. You need to identify all these possibilities, parse, and convert them to Go. I could be wrong about this, but it may be easier to conv

[go-nuts] Re: Java to Go converter - 2

2022-05-17 Thread alex-coder
In Go, multithreading is one of the main features, respectively, the ability to convert Java code using multithreading into Go code automatically, which uses channels, is very important. I found a suitable example of ProducerConsumerExample from Oracle there:Oracle sample

[go-nuts] Re: Java to Go converter - 2

2022-04-28 Thread alex-coder
So, multithreading. I found a simple example from Oracle with the wonderful name "Bad Threads" there: https://docs.oracle.com/javase/tutorial/essential/concurrency/QandE/questions.html , simplified it even more, called the example a new simple name One and extend a Converter to translate the co

[go-nuts] Re: Java to Go converter - 2

2022-04-07 Thread alex-coder
Thanks for the comments about generating code to handle exceptions. . Here it is a new version. package main import ( "fmt" "os" ) type CatchException struct{} func main() { var args []string = os.Args var ce CatchException = CatchException{} ce.CatchException_main(args) }

[go-nuts] Re: Java to Go converter - 2

2022-04-04 Thread alex-coder
*Another use case for automatically translating codewritten in Java to Golang is Exception Handling.The next example is likely to be about multithreading.Example in Java:* package com.builder.start.here; public class CatchException { public static void main(String[] args) { try