Originally posted by cynic
View Post
Announcement
Collapse
No announcement yet.
Fedora 37 Hopes To Have A Preview Of The New Web-Based Install UI
Collapse
X
-
Originally posted by Charlie68 View Post
To tell the truth, openSUSE is the most powerful "install" out there.
It offers by default a simple and a more advanced powerful mode in which you can choose in detail what to install and what not.
- Likes 1
Comment
-
Originally posted by cynicI see this type of bug everyday where dynamic typed languages are used (luckily I care about my work and don't use such languages).
Comment
-
Originally posted by krzyzowiec View PostIt really has nothing to do with dynamic types. You can do dumb things in any language.
Originally posted by krzyzowiec View PostIt’s also trivial to avoid if you actually know them.
Never saw this video?
Those languages always try to compute whatever absurd thing you ask them to do, and the outcome is not always the one you expect.
This open a big class of runtime bug.
Originally posted by krzyzowiec View PostThen again, you don’t use them so how would you know?
I use software written by other persons!
Some of my collegues uses python, perl and JS and they often incurr in those kind of bugs.
Not that my software is bug free, but I least my compilers won't let me add an array to an object and find out at runtime that, after all, that wasn't a good idea.
- Likes 3
Comment
-
Originally posted by Jedibeeftrix View PostWhat is so important about web based installers to the two big linux enterprise companies?
- Likes 1
Comment
-
Originally posted by krzyzowiec View Post
It really has nothing to do with dynamic types. You can do dumb things in any language. It’s also trivial to avoid if you actually know them. Then again, you don’t use them so how would you know?
In Java, Go, Rust, and many other languages, if you have a function
Code:String addTwoNumbers(int a, int b) { return String.valueOf(a+b); }
Let's imagine for a moment that we are working with javascript and that we are receiving two numbers from a server and we need to compute their sum client-side using a similar function but in JS (sorry if there are mistakes, I am no JS professional, treat is as pseudocode).
Code:function veryImportantFunction() { var num1 = getNumber1FromServer(); var num2 = getNumber2FromServer(); return addTwoNumbers(num1, num2); } function addTwoNumbers(a, b) { var sum = a+b; return sum.toString(); }
- Likes 2
Comment
-
Originally posted by undefined View PostSo, this function will never ever do anything unexpected.
Java:
Code:public class MyClass { static String addTwoNumbers(int a, int b) { return String.valueOf(a+b); } public static void main(String args[]) { int x= 500000000; int y=2000000000; System.out.println(addTwoNumbers(x, y)); } }
JavaScript:
Code:function addTwoNumbers(a, b) { return a+b; } let x= 500000000; let y=2000000000; console.log(addTwoNumbers(x, y));
I asked 7 people around me what result they expected when adding 500000000 to 2000000000 and not a single one gave Java's result as the answer. Clearly that's not the expected behaviour.
Do you really want a partition with a size of -1794967296 ? I think not. lol
Comment
-
Originally posted by finalzone View Post
The current Anaconda installer has that similar simple and advanced powerful mode via network installation and also on Fedora Server by default.
Comment
-
Originally posted by win10pwrusr View Post
Are you sure? I just tested it.
Java:
Code:public class MyClass { static String addTwoNumbers(int a, int b) { return String.valueOf(a+b); } public static void main(String args[]) { int x= 500000000; int y=2000000000; System.out.println(addTwoNumbers(x, y)); } }
JavaScript:
Code:function addTwoNumbers(a, b) { return a+b; } let x= 500000000; let y=2000000000; console.log(addTwoNumbers(x, y));
I asked 7 people around me what result they expected when adding 500000000 to 2000000000 and not a single one gave Java's result as the answer. Clearly that's not the expected behaviour.
Do you really want a partition with a size of -1794967296 ? I think not. lol
Anyway, it was not my point to say that Java or whatever language is absolute best and has no bad moments. My problem is that the amount of these possible silent bugs is different. In Java you have provided one of the most well-known in CS issues with integer overflow, but this is rather an exception in Java than a rule.
- Likes 1
Comment
Comment