|
Henrik, open up a console in Chrome and type 0.1 + 0.2 and see whatMost BL is ADD, SUB, MULT or DIV anyway.
Javascript thinks the answer is 😊 So already Javascript cannot do the
basic maths you describe, due it only supporting floating point numbers,
without having to implement some fixed point maths library. Try any kind of
date manipulation and you'll find yourself in a similar mess without
resorting to moment.js or some other helper library.
________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxx> on behalf of Henrik Rützou <
hr@xxxxxxxxxxxx>
Sent: 19 March 2018 17:05
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Rise of Node
Nathan,
you don't have to code async if there is no need for that - a simple batch
process
that runs in its own instance hasn't other to compete with (so why async?)-
so you
code that sync - exactly as you are used to.
be aware of that nearly all async functions in node has a sync counterpart
const fs = require("fs")
fs.readFile <> fs.readFileSync
fs.writeFile <> fs.writeFileSync etc.
And BL also seems to be a big issue - what instructions has RPG to offer
that
javascript hasn't? Most BL is ADD, SUB, MULT or DIV anyway.
On Mon, Mar 19, 2018 at 4:13 PM, Nathan Andelin <nandelin@xxxxxxxxx>
wrote:
On Sun, Mar 18, 2018 at 10:26 PM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:functions
Nathan you are wrong, your statement should be await ...
While I appreciate the syntax improvement offered by asynchronous
and await blocks, that wasn't my point. That syntax is only availablewas
recently. And callbacks are still occurring under the covers. My point
that the event-loop architecture is poorly suited for the implementationof
data validation, business rules, and other functional requirements ofhttps%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%
business applications.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://nam04.safelinks.protection.outlook.com/?url=
2Fweb400&data=02%7C01%7C%7C623128ab14e44486881708d58db36766%
7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636570724026601425&sdata=
N0bW09q4hpadDN5THsbgyY6bCLDTuZKdGd38g3Sjcew%3D&reserved=0
or email: WEB400-request@xxxxxxxxxxxxhttps%3A%2F%2Farchive.midrange.com%2Fweb400&data=02%7C01%7C%
Before posting, please take a moment to review the archives
at https://nam04.safelinks.protection.outlook.com/?url=
7C623128ab14e44486881708d58db36766%7C84df9e7fe9f640afb435aaaaaaaa
aaaa%7C1%7C0%7C636570724026601425&sdata=CdTayS8R%2FhhF%2FhkG%
2BqD2ZzqGyKoBn3VtnfXnnkTnKSo%3D&reserved=0.
--
Regards,
Henrik Rützou
https://nam04.safelinks.protection.outlook.com/?url=
http%3A%2F%2FpowerEXT.org&data=02%7C01%7C%7C623128ab14e44486881708d58db3
6766%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%
7C636570724026601425&sdata=Tr%2FczDhDp%2Fll3fMKO3r%
2FSJgGxZPLctWoVD4loGN2Ft4%3D&reserved=0 <https://nam04.safelinks.
protection.outlook.com/?url=http%3A%2F%2Fpowerext.org%2F&data=02%7C01%7C%
7C623128ab14e44486881708d58db36766%7C84df9e7fe9f640afb435aaaaaaaa
aaaa%7C1%7C0%7C636570724026601425&sdata=ufjQ7r0XWg%2BfFHcVE9ayqsy%
2FdYvTWuCZeMJerDrVyK8%3D&reserved=0>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://nam04.safelinks.protection.outlook.com/?url=
https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%
2Fweb400&data=02%7C01%7C%7C623128ab14e44486881708d58db36766%
7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636570724026601425&sdata=
N0bW09q4hpadDN5THsbgyY6bCLDTuZKdGd38g3Sjcew%3D&reserved=0
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam04.safelinks.protection.outlook.com/?url=
https%3A%2F%2Farchive.midrange.com%2Fweb400&data=02%7C01%7C%
7C623128ab14e44486881708d58db36766%7C84df9e7fe9f640afb435aaaaaaaa
aaaa%7C1%7C0%7C636570724026601425&sdata=CdTayS8R%2FhhF%2FhkG%
2BqD2ZzqGyKoBn3VtnfXnnkTnKSo%3D&reserved=0.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.