Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39913
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Loop optimisation. |
| Date | 2021-04-12 23:09 +0100 |
| Organization | A little, after lunch |
| Message-ID | <s52gfe$tb3$1@dont-email.me> (permalink) |
| References | (1 earlier) <5jq37gd23tnrtbnffci51j0pluo6o55ig8@4ax.com> <s4uj91$h3l$1@dont-email.me> <m9067g52dgp82u6fr2qnq1i50r38tip8t9@4ax.com> <s504n4$m0d$1@dont-email.me> <9dv87g1v9org1atmooqprf2t0acoakd2ha@4ax.com> |
On 12/04/2021 18:04, John G Harris wrote: > On Mon, 12 Apr 2021 01:36:51 +0100, The Natural Philosopher > <tnp@invalid.invalid> wrote: > >> On 11/04/2021 15:03, John G Harris wrote: >>> On Sun, 11 Apr 2021 11:33:04 +0100, The Natural Philosopher >>> <tnp@invalid.invalid> wrote: >>> >>> <snip> >>>> I have a ms or so to run a 256 cycle iteration with quite a lot of FP >>>> potentially >>>> >>>> However my basic audio code seems stutter free on a crap mobile phone >>>> running firefox, on android, so there is plenty of hope. >>> >>> You're doing real time code in a web browser, using a language that >>> assumes an autonomous garbage collector! You've picked the wrong tools >>> to do the job. And next year a cart horse will win the Derby. >>> >>> John >>> >> I don't think you know what you are saying. Browsers already do real >> time streaming audio. The audio worklet interface extends that..well in >> firefox it does. Chrome is broken. There is sufficient buffering >> provided to do quite a lot of processing - about 1 ms default. >> As I said it works so far even on a cheap android phone > > So you are not complaining about the language after all. Pity you > didn't say that at the beginning. > > John > I m notr complaining about the hardware. Or about the browser as an operating system The language - or at least the web APIS written in it, are utter shite. Grace Hopper developed COBOL to make computers accessible to people who were not natural hardware boys. They were business analysts. Not coders. Ever since, 'computer scientists', who are only one step above ArtStudents™ when it comes to being wankers of the first order, have been making up new languages that are so arcane that they simply *prevent* ordinary people trying to use a computer from solving a problem. How many stock control systems are written in Prolog or Lisp? After about three weeks, one browser - and one only - now works for me to start developing the code I wanted to develop. That three weeks has been spent struggling with lack of documentation, examples that simply did not work that were copied one from another presumably without checking and layers of obfuscation created by what is simply fashion - making everything an object or a method, - that is arguably inappropriate for the task in hand. In short I am fighting the language - its is not helping me program, it is hindering me from programming. It is just that in the applications I am building its marginally less worse than fighting that utter cunt Poettering and PulseAudio™, the project he abandoned half finished to wreck everyone's linux by inventing something no one wanted or needed - systemd. "servers will boot faster with systemd" The last thing I give a flying fuck about in a server is how fast it boots,. The aim or a server is to stay up for ten years at a time, and if I want it to boot fastger I'll put the OS on an SSD. I'm too old to spend thousands of pounds on a course that would familiarize me with the exact syntax of 'constructors' and 'processors' or why you need to create and link 5 'objects' just to intercept an audio path, or why this must needs be done in background by an asynchronous task...and each one is quirky and requires different syntax depending on which browser one is using JavǎScript, to misquote Tom Lehrer, is like a sewer. What you get out of it depends on what you put into it. It bears the stamp of CompSci all over it,. Designed to create a privileged class of gurus who understand the language, not competent journeyman programmers who can use it to actually get a real world job done. Bjarn Stroustrup admitted that half the point of C++ was to create more jobs for programmers.... Browsers, the DOM and JavaScript have been thrown together in a rush, and its is the exact opposite of - say - php, which one guy designed to do a specific job, which it does pretty well - or did till it went object oriented. Programmers today who have been On Courses and Passed Exams in stuff never stop to ask the question that some of us who grew up before computers existed, cant help but ask 'Is this actually better?' Never mind a database, how many computerised systems that cost a fortune and dont work are better than say the old stock control system, where each part had the stock level on a card in a card index, and when the stock level got low you made a note on another card of the part reorder level and put it in the pile of 'order some more' And how much easer that is than catch( company.location[A].stockRoom.part[partno]=partsIssued.update.is negative)=>company.location.purchasing.part[partno]+=company.location.purchasing.part[partno].reorderLevel. ?? And even that is too esy. Let's construct a 'part deficit object' that 'extends class "profit"' and put it in the middle., just to show how fucking clever we are...and ensure that no one else will ever be able to maintain the code we wrote -- A lie can travel halfway around the world while the truth is putting on its shoes.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-10 18:41 +0100
Re: Loop optimisation. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-10 19:14 +0100
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-11 11:33 +0100
Re: Loop optimisation. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-11 15:03 +0100
Re: Loop optimisation. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-11 07:38 -0700
Re: Loop optimisation. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-11 13:36 -0700
Re: Loop optimisation. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-12 18:05 +0100
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-12 23:16 +0100
Re: Loop optimisation. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-13 05:19 -0700
Re: Loop optimisation. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-13 06:21 -0700
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-12 01:36 +0100
Re: Loop optimisation. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-12 18:04 +0100
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-12 23:09 +0100
Re: Loop optimisation. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-13 20:08 +0100
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-13 21:41 +0100
Re: Loop optimisation. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-14 18:24 +0100
Re: Loop optimisation. Kristjan Robam <he12457@hotmail.com> - 2021-04-10 13:36 -0700
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-11 11:34 +0100
Re: Loop optimisation. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-10 22:22 -0700
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-11 11:36 +0100
Re: Loop optimisation. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-04-14 02:20 +0200
Re: Loop optimisation. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-14 06:48 -0700
Re: Loop optimisation. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-04-14 17:31 +0200
Re: Loop optimisation. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-04-14 18:00 +0200
Re: Loop optimisation. The Natural Philosopher <tnp@invalid.invalid> - 2021-04-14 19:25 +0100
Re: Loop optimisation. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-04-14 23:10 +0200
Re: Loop optimisation. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-17 09:45 -0700
Re: Loop optimisation. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-17 09:43 -0700
Re: Loop optimisation. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-04-17 21:45 +0200
Re: Loop optimisation. Scott Sauyet <scott.sauyet@gmail.com> - 2021-04-18 19:06 -0700
Re: Loop optimisation. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-17 08:50 -0700
csiph-web