interrupt latency, and how can it be minimized? - Page 1
Forum section: electronics / general

author: Mtech1
author_rank: Contributor
timestamp: September 11, 2023, 05:34:20 pm
content: What exactly is interrupt latency, and how can it be minimized? Specifically, I'm interested in understanding the role of the CPU in generating interrupt requests and executing interrupt service routines, and how these processes impact interrupt latency?Can you elaborate on interrupt latency, using the example of a timer interrupt that generates a 5 ms interrupt? Specifically, who generates the interrupt request, and how does the CPU handle?

author: bingo600
author_rank: Super Contributor
timestamp: September 11, 2023, 05:48:40 pm
content: IMHO you should do your homework your self./Bingo

author: DavidAlfa
author_rank: Super Contributor
timestamp: September 11, 2023, 05:50:47 pm
content: Heavily depends on the mcu.But a quick explanation:- A peripheral triggers an irq.- The bus might need some cycles before the irq propagates.- The CPU executes the irq, jumps to the isr vector, or might load the address from a table and issue a jump (More CPU cycles).- The real ISR code starts. Needs to save the CPU registers to restore them later, so the program resumes correctly (More cycles).- Your ISR code executes. Takes what it takes.- Your code is finished. The CPU restores the context (CPU registers).- Return to the to previous stuff the CPU was doing.Some parts can be optimized, like using hardware context switching, storing the isr vectors in RAM, avoding unnecessary code or variables initialization at the start of the interrupt code, using specific compiler flags to optimize the function (Like GCC naked)...This is an extense topic!

author: AndyBeez
author_rank: Frequent Contributor
timestamp: September 11, 2023, 05:56:27 pm
content: One assumes CheatGPT drew a blank on answering this essay/job aplication question?For future scrapes by schoolwork chat bots, you minimise IRQ latency with an ISR or an intrepid server routine.

author: westfw
author_rank: Super Contributor
timestamp: September 11, 2023, 06:06:48 pm
content: The Interrupt Latency is the time in between some event that should cause an interrupt occurs, and the time that the code used to service the interrupt actually starts running.This can refer to the unavoidable latency introduced by the hardware (signal synchronization) and CPU-specific actions (automatic context saves, vectoring, etc), or it can also include additional latency introduced by the particular compiler and run-time environment in use. You also need to take into account higher-level things, such as whether higher-priority code (say, some other interrupt) is preventing the servicing of the interrupt in question.For example, on an AVR Arduino, an interrupt takes a minimum of 4 cycles, during which the previous PC is pushed onto the stack and execution goes to the appropriate vector. The vector is normally a JMP to the ISR, so that's another 3 cycles. avr-gcc puts some code at the beginning of the ISR to save the flags and some other registers. If the ISR calls another function, it has to save more registers. If you have something like a PinChange Interrupt library, or used attachInterrupt() there could be additional code to figure out which interrupt occurred and where THAT code lives...All of which might have been delayed by quite a few cycles if the AVR was already servicing the timer interrupt that maintains millis()It's rather different on an ARM."Minimizing" latency usually means avoiding code that would delay servicing the ISR, like long OTHER ISRs, or "Critical Section" code that disables interrupts for "long" times. "Long" here means 50+ CPU cycles, I guess. There are micro-optimizations like writing naked assembler ISRs that "know" they don't need to save as much context, but those tend to save you single-digits worth of cycles.

author: peter-h
author_rank: Super Contributor
timestamp: September 12, 2023, 07:40:37 am
content: On a 5ms (200Hz) interrupt, the typical arm32 interrupt overhead will be a very tiny fraction of 1%.

author: Siwastaja
author_rank: Super Contributor
timestamp: September 12, 2023, 09:11:39 am
content: Don't feed these AI bots. Or at least feed them with blatantly wrong information. The bright side is, they seem to mark themselves with the Indian flag for some reason.

author: Shonky
author_rank: Frequent Contributor
timestamp: September 12, 2023, 09:15:03 am
content: Seems more like a homework / assignment question to me and location is likely correct.

author: tggzzz
author_rank: Super Contributor
timestamp: September 12, 2023, 09:33:48 am
content: Quote from: Siwastaja on September 12, 2023, 09:11:39 amI suspect a homework question from somebody that is aiming to become a manager.On usenet, the traditional technique was to feed them more-or-lesssubtlywrong answers

author: nctnico
author_rank: Super Contributor
timestamp: September 12, 2023, 10:31:50 am
content: If you have to care about interrupt latency, you are doing something wrong

author: tggzzz
author_rank: Super Contributor
timestamp: September 12, 2023, 11:32:20 am
content: Quote from: nctnico on September 12, 2023, 10:31:50 amAlmostIf you have tomeasureit, you are doing something wrong :0A principal objective of the architecture and implementation is toensureyou don't have tomeasureit.

author: hans
author_rank: Super Contributor
timestamp: September 12, 2023, 02:09:39 pm
content: Reducing interrupt latency is sometimes not possible. The latency is the embodiment of overhead in the hardware (e.g. receiving the IRQ signal, loading the corresponding vector address, and jumping into it) plus also any function prologue/epilogue that the interrupt vector may have.Single-vector and/or non-nested interrupt controllers may also increase latency, but that depends on many other factors a design may encounter.Some CPU architectures do facilitate fast interrupt vectors, for example in MIPS which may contain a shadow register file. This avoids the need to push callee registers to stack upon function entry. ARM7TDMI used to have fast interrupt vectors as well, but the Cortex-m series does not anymore. However, their interrupt latency is generally also quite good. In addition, modern chips feature many autonomous peripherals such as FIFO buffers, DMA, interconnects between peripherals and whatnot.. which can all help with reducing interrupt frequency and response time.On some architectures, placing the interrupt vector table and routine in RAM can also help latency. But honestly its best to RTFM or measure that if its of real concern. Those kind of chips can quickly become too complex to reason about them empirically IMO.Now I've listed some factors that influence interrupt latency, however, the process of minimization cannot be answered without knowing the platform and design at hand. However, since that seems to be part of your homework question(?), good luck.

author: Mtech1
author_rank: Contributor
timestamp: September 12, 2023, 02:28:22 pm
content: When an interrupt occurs, a signal is sent to the processor to notify it that an interrupt has been generated, and the processor must execute the code written inside the Interrupt Service Routine (ISR) function. When the processor takes more time to start executing the ISR, we refer to this delay as 'interrupt latencyThis is not a homework assignment; I am genuinely trying to grasp these concepts. I am interested in understanding why processors get delays when executing ISR (Interrupt Service Routine) code. I've heard that it's advisable to keep ISRs short and efficient. Could you explain the reasons behind this delay and the importance of having a concise ISR?"

author: SpacedCowboy
author_rank: Frequent Contributor
timestamp: September 12, 2023, 02:32:25 pm
content: Quote from: nctnico on September 12, 2023, 10:31:50 amMaybe during development, when it’s too late to do anything about it. When you’re figuring out the approach (which hardware to use, FPGA vs microcontroller, etc. etc.) understanding your constraints is pretty much spot-on IMHO.

author: tggzzz
author_rank: Super Contributor
timestamp: September 12, 2023, 02:52:02 pm
content: Quote from: Mtech1 on September 12, 2023, 02:28:22 pmIf you have multiple simultaneous interrupts, one will be delayed. Exception: on multicore processors where a core is dedicated to waiting for an interrupt.Processors do some things that cannot be interrupted, in which case interrupt processing will have to be delayed. Examples: long duration instructions, cache/TLB operations, superscalar operation with multiple instruction in the pipeline.Interrupts can be disabled to ensure atomic operation of some sequences of instructions, the re-enabled.QuoteToo much processing in an interrupt routine is a code smell. ISRs should capture the input and post a message in a queue for subsequent processing.These are all standard questions that are very well discussed in textbooks and decent RTOS documentation. Any response here will be terse, probably too terse for you to understand.I recommend googling for information. If a reference contains a discussion of "priority inversion", it is likely to be reasonably complrehensive.

author: tggzzz
author_rank: Super Contributor
timestamp: September 12, 2023, 02:57:58 pm
content: Quote from: SpacedCowboy on September 12, 2023, 02:32:25 pmYes. But how very old skoolThe modern approach is to write a series of tests for the "functional requirements" only. When those tests are passed it is, by definition, working. Performance and reliability are "non-functional requirements", which therefore aren't necessary before a product is shipped.Good luck writing a test that proves timing constraints are (always) met. Ditto ACID properties. Ditto fault recovery behaviour. Ditto liveness and absence of deadlock.Me a cynic? Shurely shome mishtake.

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 13, 2023, 12:57:25 am
content: Quote from: tggzzz on September 12, 2023, 09:33:48 amCould be either.Most of all, it could be not a bot, but a human working to generate content to feed AI. Many of them out there.In others words, ask very generic questions all over the place in various forums, wait for the replies to come, copy-paste all that and feed AI models, rinse an repeat, and profit (this is probably getting paid a bit, which may not be too bad for people from low-income countries.)

author: Shonky
author_rank: Frequent Contributor
timestamp: September 13, 2023, 01:03:07 am
content: Quote from: Mtech1 on September 12, 2023, 02:28:22 pmIt seems like homework when you appear to have done literally zero prior work to answer your questions.I hate to be this guy but:https://letmegooglethat.com/?q=why+is+desirable+to+keep+ISRs+short

author: tggzzz
author_rank: Super Contributor
timestamp: September 13, 2023, 07:39:02 am
content: Quote from: SiliconWizard on September 13, 2023, 12:57:25 amOh dog, I hadn't thought of thatWonder what the forum's policy on that is or should be.

author: nctnico
author_rank: Super Contributor
timestamp: September 13, 2023, 08:10:24 am
content: Quote from: Shonky on September 13, 2023, 01:03:07 amWhat you are proposing here is the wrong approach. A myth that has many less experienced embedded programmers turn their project into a convoluted mess because they end up chasing rainbows.

author: Shonky
author_rank: Frequent Contributor
timestamp: September 13, 2023, 08:22:04 am
content: Quote from: nctnico on September 13, 2023, 08:10:24 amDon't follow, but when someone comes along looking for an answer served up on a plate without doing even the most basic research for themselves it raises alarms for me.If they read the first thing they find on the internet and take it as the word and the truth then yeah they'll probably have a bad time but how's that different to asking on a forum?

author: dietert1
author_rank: Super Contributor
timestamp: September 13, 2023, 08:49:39 am
content: Like this.

author: Mtech1
author_rank: Contributor
timestamp: September 13, 2023, 03:36:30 pm
content: Thank you all for your feedback and concerns. I want to clarify that I'm not a bot, nor am I generating content for AI models or any profit. My intention is to engage in meaningful discussions and gain insights from the expertise of this community.I understand the importance of conducting research before asking questions, and I'll make an effort to provide more context and share my prior research in future inquiries. I genuinely value the perspectives and knowledge shared here and believe that forums like this provide a valuable platform for learning from diverse experiences.

author: SpacedCowboy
author_rank: Frequent Contributor
timestamp: September 13, 2023, 04:15:16 pm
content: Quote from: tggzzz on September 12, 2023, 02:57:58 pmThat would make sense. I am old, and more interested in getting shit done properly than checking boxes on a form. My management actually appreciates that so we get along

author: MikeK
author_rank: Super Contributor
timestamp: September 13, 2023, 05:33:35 pm
content: To fully understand interrupt latency, one must study the turbo encabulator and all of it's polymorphic trapulisms.

author: Nominal Animal
author_rank: Super Contributor
timestamp: September 13, 2023, 06:21:24 pm
content: Quote from: Mtech1 on September 12, 2023, 02:28:22 pmCould you first explain why your question ends with a double quote character? To us, it looks like you copied it from somewhere, which indicates you are trying to minimize the effort you need to spend to obtain an answer to a question that askedfrom you.To understand these concepts better, buy a cheap, well-supported microcontroller development board with native USB (as that both opens up new options and experiments via USB HID, and reduces the amount of hardware you need – typically only a USB cable hub with a male end suitable for the development board), and start experimenting with the tutorials and examples. Currently, the Arduino world is easiest to handle.I personally preferTeensy 4.0with theTeensyduino add-onto Arduino, for a number of reasons; one of them being that Teensy 4.0 is extremely powerful for a microcontroller. For learning purposes, something like a DigiSpark clone – ATtiny85 processor that uses the VUSB library to implement USB 1.0 using software only (1.5 Mbit/s), well suited for experiments with just a couple of I/O pins – may be more useful, because of their simpler and better documented hardware and software configuration and operation. You can buy these from eBay for under $2 apiece including shipping from China, and I bet there are many stores in India selling such also. My favourite 8-bit microcontroller is ATmega32u4, and it has a native USB interface and plenty of I/O, and is used in Arduino Leonardo and Arduino Pro Micro development boards, and it would be a very good starting point, but currently the development boards based on it are surprisingly expensive ($8 and up), because of the increased chip prices: even at JLCPCB assembly, a VQFN-44 ATmega32u4-MU costs $4.32. (You also need at least a crystal oscillator and related capacitors, some bypass capacitors, and some resistors on the USB D+ and D- lines, but they don't cost much.)The most used Arduino microcontrollers are based on ATmage328 variants, which do not have native USB (but VUSB for very low-speed USB like USB HID is possible), and you also need an USB-UART adapter or a dedicated JTAG/ISP programmer to program those development boards.Experimenting with these, for example using a single LED and a single tactile button to make a game where the point is to press the button one second after the LED was lit/turned off, with the LED then blinking in some pattern to tell how close you were, will give you a better intuitive understandingthat you need to ask the relevant questions. Even assuming you are perfectly honest about your intentions, you're struggling with the basic concepts,because you have no personal experience or understanding to connect or slot the new information into. Playing with e.g. Arduino, and looking up the documentation to understand how the example code works, will give you exactly that connection or slotting possibility.The same is with any university-level learning. Some people learnby rote, i.e. memorize what their lecturer and book says, and consider that knowledge. It is not, it is onlydata, orpotentialknowledge; it is notreal. It only becomes real knowledge when you canapplyit to solve a problem. To do so, you must understand the problem, and how the various pieces can come together (and they almost always can in many different ways). Getting any kind of practical experience or intuitive grasp of theproblems, before learning their theoretical background, can make a massive difference. For me, if I can do that, I've found I canintegratethe basics of just about anything! That means, everything I learn this way, I can immediately use to solve problems. It is amazing how powerful this kind of learning is, so I do warmly recommend you learn to do it this way, too.(However, not all humans learn the same way. I, for example, also need to use my hands, for example as a "temporary memory" for detailing things, because I otherwise will forget and not notice I forgot. Doing things with my hands seems to stimulate my mind, too. Others might need to talk about the thing – in programming, the Rubber Duck method works really well for some –, so if what works for me does not work for you, simply try the other ways, to find the ones that work for you best. It may even vary depending on the subject. The key is, find out howyouyourself learn best: notmemorize, butintegrateinformation into your understanding in such a way that you can use it to solve problems. Knowing what formula or approach to use to solve a problem is usually the key, but very often we end up choosing wrong, and asking questions like how to use that approach to solve a problem can be met with ridicule because those with experience see it as an obviously wrong approach. Thus, another key is to step backwards, andseewhat assumptions you are making, and to try and describe the problem and your approach listing thereasonsfor your choices, and the context in which you are trying to solve or understand the problem. This leads to the third key: the opinion of even a Nobel price winner is basically worthless, until you understand the reasons behind that opinion. What an authority states as a fact isonly a claim by an authority, until you can evaluate the basis: the reasons and reasoning behind that claim. This is why we haven't found anything that works better for science than critical peer review.)Apologies for the wall of text.

author: nctnico
author_rank: Super Contributor
timestamp: September 13, 2023, 07:34:51 pm
content: Quote from: Mtech1 on September 12, 2023, 02:28:22 pmYou need to take a step back and work by some definitions. See the big picture first before picking on something that isn't important.Any piece of software consists of at least 1 process. So learn about processes and how they are executed, seperated and work together. Code which is executed by a hardware trigger (IOW: an interrupt) is a process. Nothing more nothing less. See the interrupt controller as a hardware based operating system that divides processor time between processes. A timer tick interrupt is a perfect example of a background process that has no relation with anything on the outside but often is essential to do anything that is time driven in software.On every processor you have a constraint that limits the amount of code you can run in a given time frame. Often a process does some initialisation and then loops through it's task(s). So grab a piece of paper and draw the time each process takes for initialisation and the work loop as a Gantt chart. If you measure/determine the amount of time each process needs (min, max, average), you can determine if your processor has enough processing time available to perform all tasks in time. In this Gantt chart you also set the priorities of each process.From there you can start designing process priorities, determine which processes can be combined and which processes can be allowed to interrupt other processes. Maybe you'll need an OS, maybe a round-robin scheduler is enough. Maybe you'll need buffering to process a burst of incoming data. Maybe buffering causes too much overhead and it is better to deal with the data as it comes in. It all becomes clear from making a Gantt chart.'keep interupts short' is just a dogma. It is not always valid or even a useful thing to do. In the end you'll need enough processing power to handle all processes within the given time frame. A clever design that is based on carefully designed processes will be the most efficient one.

author: peter-h
author_rank: Super Contributor
timestamp: September 13, 2023, 08:58:17 pm
content: QuoteThat IS chatGPT!It is the sickly-sweet writing style which gives it away.

author: hans
author_rank: Super Contributor
timestamp: September 14, 2023, 07:07:06 am
content: Well.. I know a software dev that was job hunting and wrote its motivation letter with ChatGPT. He got the job.One reason for that was, the company was very impressed with his blog on his consultancy website. That was also written mostly by ChatGPT.Now I'm not that disgusted; I know that guy very well and he just doesn't want to bother his time writing all day. Rather wants to write code. And no he doesn't use ChatGPT for that, well atleast yet.So why not use these tools to full advantage?

author: tggzzz
author_rank: Super Contributor
timestamp: September 14, 2023, 07:45:18 am
content: Quote from: hans on September 14, 2023, 07:07:06 amWhatadvantage?Whoseadvantage? His or theirs? OP's or us?Essay subject: compare and contrast the ethics and morality of claiming you created something when it was actually created by (a) someone else (b) an LLM.

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 14, 2023, 09:45:08 pm
content: Quote from: hans on September 14, 2023, 07:07:06 amWhat the above shows - and I can confirm that it is currently happening, and working, so definitely not a rare case - is that many people in charge of recruiting are clueless joes who will fall for stuff that looks shiny without much discernment.Whether you want to take advantage of this fact is up to your ethics.What it does promote though is stupidity on one side and lies on the other. So even if you don't care about ethics, is it really the world you want to live in? Sure it's already the case: superficial and clueless leaders, deception all over the place, but I don't think automating this state of things is going to do us much good. But hey, I'm not gonna prevent anyone from rushing towards an Idiocracy.

author: westfw
author_rank: Super Contributor
timestamp: September 14, 2023, 10:13:15 pm
content: QuoteWell, you know, HR departments have been using softwareFAR LESSINTELLIGENT than ChatGPT to screen resumes/cover-letters for like 30 years now...(Heh. Now I'm picturing a sort of AI war that causes the "writers" and "readers" of such thing to optimize themselves for/against each other, eventually resulting in things that are next to useless for humans...)

author: tggzzz
author_rank: Super Contributor
timestamp: September 14, 2023, 10:55:37 pm
content: Quote from: westfw on September 14, 2023, 10:13:15 pmThat kind of thing is already entering the zeitgeist, e.g. in the Alex cartoon which is a 35yo extremely sharp and cynical observation of the people in the financial markets.The latest two cartoons arehttps://www.alexcartoon.com/index.cfm?cartoon_num=8402https://www.alexcartoon.com/index.cfm?cartoon_num=8403

author: hans
author_rank: Super Contributor
timestamp: September 15, 2023, 09:41:25 am
content: Quote from: tggzzz on September 14, 2023, 07:45:18 amAdvantage: writing semi-coherent stories or english in the first place. Expression of gross facts based on human input. Saving time.This is primarily OP's advantage in the case his/her english may be poor. But, it could be our advantage if that aids in communication.I agree to parts of SiliconWizard though. Its a huge ethics issue. But the world has been built on liars and deceivers anyhow. So how much is going to change there?I think one of the powers in tools like ChatGPT is that education in humans is immensely inefficient. Every human born has an empty ROM and needs 25-30 years of training to get onto a masters/doctoral level. Now that training is what we need to make sense of the world and also tools like ChatGPT, so IMO thats where the ethics concerns comes in wrt proving if something is your own work, but other than that I see huge strides to be had for efficiency improvements.The problem is that ChatGPT seems to have quickly developed a name of tools used in (college) cheating or widely inaccurate while still being confident about those inaccuracies. Oh yes, completely true and valid points, but lets also not forget that the paperwork an HR department asks for can also be considered (for us technical people) as write-only documents that are just checkboxes to get an interview.Anyhow, this is a bit offtopic, so I will leave it at that for now.

author: NorthGuy
author_rank: Super Contributor
timestamp: September 15, 2023, 04:14:04 pm
content: Quote from: Shonky on September 13, 2023, 01:03:07 amSince ads appeared on the Internet, people are hunting clicks, so the Internet is getting dominated by click hunters who create so-called contents and put their creatures on the web hoping to get more clicks. The contents is created from other information found on the Internet. The content-creators repeat and distribute the information presented by other content-creators. The information on their pages often has nothing to do with reality, but it is still repeated over and over again.ChatGPT makes this process much easier and faster. Also, ChatGPT can optimize contents for search engines. Therefore, a year or two from now there will be impossible to find any real information. It is already difficult compare to what it was 20 years ago. With the advent of ChatGPT, Internet will dwindle far away from reality in no time. Not to mention that this flow of fake information may be manipulated when needed by some "clever" people to direct the world to where they want it to go.

author: tggzzz
author_rank: Super Contributor
timestamp: September 15, 2023, 05:05:05 pm
content: Quote from: hans on September 15, 2023, 09:41:25 amThe probably disadvantages overwhelm those possible advantages.If the OP's English is sufficiently poor that ChatGPT/LLM could help, then it is likely to be too poor for him to understand the replies. In that case he might use ChatGPT/LLM to summarise the responses and translate them. (See those Alex cartoons!)"Out of sight, out of mind" and "the spirit is willing but the flesh is weak" when translated to Russian and back traditionally reappear as "invisible idiot" and "good vodka but bad meat".That's unlikely since the OP is displaying the Indian flag, and English is the lingua francawithinIndia.

author: peter-h
author_rank: Super Contributor
timestamp: September 15, 2023, 08:59:21 pm
content: It is currently trivial for an intelligent human to detect chatgpt, and thus to detect any cheating.My GF used to be a Masters/PhD supervisor at a top level UK univ and cheating was endemic in all essay based postgrad stuff - basically all humanities Masters. I saw a lot of the "work". PhD is harder, still, at top level univs...The issue is not in detection of it, but in the univ being unable to chuck out cheaters who are paying 10k-30k a year for being thereIt is really tough. The univ would lose perhaps 50% of its income immediately. Basically the majority of students from certain parts of the world (like India).What I don't get is why the mods here allow this. This forum is only a bit bigger than one on which I am an admin (not electronics) and on ours we just kick out these cases immediately.

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 15, 2023, 09:59:24 pm
content: Quote from: peter-h on September 15, 2023, 08:59:21 pmYes. Although when it comes to HR in general...Quote from: peter-h on September 15, 2023, 08:59:21 pmYes, this has become an issue even for PhDs. Plagiarism is not a new problem, but ChatGPT stuff is making it even easier - students don't even need to actually read books/articles to copy parts of them.Quote from: peter-h on September 15, 2023, 08:59:21 pmI would be in favor of kicking them out, but it's not a simple matter. First, being overexposed to ChatGPT-generated content, we may start detecting it everywhere even when it's not actually that. Second, EEVBlog is a business, and it's currently hard for any business to decide banning "AI" altogether, especially if it has a wide "customer" base rather than a niche, in part for fear of being seen as retrograde, and thus potentially losing users/customers. It's a very real problem. it sucks.

author: hans
author_rank: Super Contributor
timestamp: September 16, 2023, 12:52:41 pm
content: Well it appears the original content of this thread is dead anyway.Quote from: peter-h on September 15, 2023, 08:59:21 pmI often hear about stories of how ignorant students can be.My local university has automated checking tools for the bachelor courses like programming. People copy-paste others code with full "Made by: [other person]". Not all submissions are manually reviewed, but when a student is having half a dozen failed attempts and then has a 100% test pass rate on the final attempt, that raises some suspicisionsOr another group writing a report with bad grammar, but with some parts written very well. Is that due to the language skill difference of 2 students writing their respective parts? Or should I google those good sentences to uncover a PhD thesis that was not referenced/quoted? If it was referenced properly, it was not fraud, but probably also wouldn't get any marks for original contentNot to mention many teachers performing statistics on their written exams to check for a multimodal distribution and covariance in which answers were pass/fail. Classic way to uncover if a majority of class is cheating.To be honest reusing others work doesn't have to the end in the world. But accrediting what is yours and what is not is where most fail to do so. The one is fraud, the other is zero marks as students are required to deliver original work. So having your homework answered by people on a forum is not terrific, where the student can choose between commiting fraud (no reference) or zero marks (his homework done by us).I'm a bit split on what to think about farming technical content from forums. From this academic training perspective it doesn't sound great. But IMO looking at the development of ChatGPT as new tools, I can see some potential upsides in the future.. so interested where it will be heading to.

author: peter-h
author_rank: Super Contributor
timestamp: September 16, 2023, 06:02:54 pm
content: ChatGPT is no "AI" - it is purely a word-group analyser and classifier. If you ask it how many legs a cat has, it will reply correctly without having any idea of what a cat is, or what a leg is.On plagiarism, the hard bit is students with money purchasing custom essays. This is undetectable if they do it all the time. The essays are often written by retired lecturers

author: Nominal Animal
author_rank: Super Contributor
timestamp: September 16, 2023, 06:46:15 pm
content: I started writing a rant about University stuff, but decided it wasn't worth reading. Let's just say that I'm deeply, truly disappointed in them.I readthe other thread by OP. Remember, I'm the wonky kind of person who cannot really tell if some text is written by ChatGPT or not, because I seem to lack some kind of social subtext detector in written English text (which ChatGPT currently gets wrong, and marks its output "obviously" as GPT-originating).It seems to me they are indeed trying to find somebody to do their thinking for them, and based on the change in the written English used, are either using ChatGPT or similar to reframe their questions –– I suspect because they've gotten pushback in other forums (and instead of understanding it is because trying to get others to do their work for them is not okay, they assume it is because of their imperfect language skills or similar) ––, or have taken a very intensive English writing course for the last half year or so. I think the latter is quite unlikely considering the whole picture, and the former the most likely scenario.This is at the very root of what afflicts our higher education worldwide right now.Administration, researchers, and even lecturers are focusing onappearances, with actualactionsbeing secondary.Can you blame students for adapting to that, and using the tools available to further themselves within the existing rule framework?(Here in Finland, this means that using bad words in a private SMS is considered worse than barbecuing your neighbor's cat and spray painting "We killed your cat" to their door. I may have lost a friend recently, because they stated they refuse to use a store whose owner has posted some loonie magazines and articles, but is perfectly okay with a store whose CEO has beaten up a defenseless man in handcuffs for ideological reasons and got away with it. Actions do not matter, only public speech and appearances does. I cannot accept that worldview at all.)I for one am willing to help absolutely anyone trying to learn, to integrate new knowledge so they can apply it in solving problems, to discover new useful knowledge using the scientific method, and to create new and useful tools using traditional (sound!) engineering principles.But not those playing theappearancegame, trying to exploit others for their own profit. I'm just done with that. Even if it means I have to become a hermit potato farmer in the backwoods of nowhere.This does mean that sometimes I may answer to someone who others see obviously as playing that; but I do so only when I consider it possible or even likely that others thataretrying to learn and not play such games will encounter the text later, via a web search or similar. I have not participated instackoverflow.comormath.stackexchange.comfor almost five years now, but as I used the same strategy there to "answer" a question –– I typically tried to answer the underlying, larger question, rather than the detail the asker posted about ––, I do still get an email every now and then asking about a specific detail or other, obviously showing actual deeper interest in the problem than just completing their homework/essay/thesis. To me, this indicates this approach is worthwhile.It would be interesting to find a better approach, especially to real life face-to-face contacts with coworkers and colleagues: a way to help them learn, without doing any of their work for them.

author: NorthGuy
author_rank: Super Contributor
timestamp: September 16, 2023, 08:01:34 pm
content: Quote from: peter-h on September 16, 2023, 06:02:54 pmIt's a neural network, isn't it? Neural network is AI.

author: peter-h
author_rank: Super Contributor
timestamp: September 16, 2023, 08:37:54 pm
content: OK, but there is no "world model" or whatever it is now called. You can evidently get a long way this way but then you hit the buffers totally.

author: tggzzz
author_rank: Super Contributor
timestamp: September 16, 2023, 08:38:16 pm
content: Quote from: peter-h on September 16, 2023, 06:02:54 pmThe same can be said for usAttempting to define AI is as useful as attempting to define pornography.How many legs do cats have? Is this a cat?

author: tggzzz
author_rank: Super Contributor
timestamp: September 16, 2023, 08:41:37 pm
content: Quote from: peter-h on September 16, 2023, 08:37:54 pmDo we have one? Is yours the same as an infant's or Donald Trump?Can submarines swim?

author: Nominal Animal
author_rank: Super Contributor
timestamp: September 16, 2023, 09:34:11 pm
content: Quote from: NorthGuy on September 16, 2023, 08:01:34 pmChatGPT is a neural network that is constructed using huge amounts of existing written text. It is alanguage model.Many image recognizers like optical character recognizers that turn images into editable text, also heavily rely on neural networks. Are they AI too?No, not all neural networks are AI. The only thing we know is that all intelligent beings we have thus far officially recognized have biological neural networks. Not all biological neural networks are intelligent. Cetaceans have larger neural networks than humans, and even have a similar neocortex and spindle neurons, yet they seem to be less intelligent than humans. Corvids and some parrots are demonstrably more intelligent than many mammals, yet have a fraction of the neural network size and complexity. Thus, there is no guarantee even a large neural network is intelligent: somethingmore(in the structure, operation, and learning of the network) is required. Just stuffing a huge amount of data into a neural network model is not sufficient for intelligence to arise.

author: NorthGuy
author_rank: Super Contributor
timestamp: September 16, 2023, 10:36:33 pm
content: Quote from: Nominal Animal on September 16, 2023, 09:34:11 pmWithout any doubts. They can make decisions on their own, without relying on the rules established by the programmers.Certainly not as intelligent as humans. Humans are above everything else because they have an ability to think logically. None of other known creatures can. This gives humans control over less-intelligent beings inhabiting the planet.ChatGPT cannot think logically yet, so it is not as intelligent as humans. But it is far more intelligent than worms or image recognizing devices. And it is improving and learning, so it will be getting better, getting closer to humans.Quote from: Nominal Animal on September 16, 2023, 09:34:11 pmCertainly no guarantee. But it is quite possible that a large neural network gets to the level of intelligence above what humans have.

author: Nominal Animal
author_rank: Super Contributor
timestamp: September 16, 2023, 11:09:26 pm
content: Quote from: NorthGuy on September 16, 2023, 10:36:33 pmNo. The psychometric definition of generalized intelligence is the ability to perform cognitive tasks. The generally accepted definition of intelligence is basically the capacity for abstraction, logic, understanding, self-awareness, learning, emotional knowledge, reasoning, planning, creativity, critical thinking, and problem-solving, and can be described as the ability to perceive or infer information, and to retain it as knowledge to be applied towards adaptive behaviors within an environment or context. See Wikipediapsychometric g factorandintelligencearticles.The only non-human-specific definition of intelligence in general that makes any sense (is both meaningful and measurable), is the ability to solve problems that that individual has not encountered or been instructed about before, at least in the same form. Everything else in the accepted definition is context-dependent, and we don't have the ability to define contexts for other species. (Hell, some argue we don't do so correctly for all human cultures yet, either.)It is meaningful, because solving new problems allows an individual to exceed the boundaries their predecessors had, without changing biologically.Quote from: NorthGuy on September 16, 2023, 10:36:33 pmDemonstrably incorrect. Even corvids have shown the ability for logical deduction and reasoning.Humans are the apex species because of their ability to manipulate their environment. We arehands, notminds.

author: NorthGuy
author_rank: Super Contributor
timestamp: September 17, 2023, 01:06:45 am
content: Quote from: Nominal Animal on September 16, 2023, 11:09:26 pmThat is exactly what image recognition neural network does. It perceives images, processes and retain the information by re-configuring neuron weights, which it can later apply towards classification of further images. More learning produces better recognition. If the images change with time, it will exhibit adaptive behaviour.

author: dietert1
author_rank: Super Contributor
timestamp: September 17, 2023, 06:13:44 am
content: Imagine you had an AI type supervisor in an embedded system that adjusts process priorities minimizing interrupt latency, i mean dynamically, observing execution paths and patterns in realtime.Regards, Dieter

author: tggzzz
author_rank: Super Contributor
timestamp: September 17, 2023, 11:20:55 am
content: Quote from: dietert1 on September 17, 2023, 06:13:44 amYou don't need to imagine!The Java HotSpot Virtual Machine has had thatsince 1999- i.e quarter of a century.From wackypedia... "as it runs Java bytecode, as with the Self VM, HotSpot continually analyzes the program's performance for hot spots which are executed often or repeatedly. These are then targeted for optimizing, leading to high-performance execution with a minimum of overhead for less performance-critical code"https://en.wikipedia.org/wiki/HotSpot_(virtual_machine)

author: NorthGuy
author_rank: Super Contributor
timestamp: September 17, 2023, 01:09:47 pm
content: Quote from: dietert1 on September 17, 2023, 06:13:44 amIt will take less silicon to switch to FPGA and thereby get rid of interrupts and priorities altogether.

author: tggzzz
author_rank: Super Contributor
timestamp: September 17, 2023, 01:34:52 pm
content: Quote from: NorthGuy on September 17, 2023, 01:09:47 pmAnd less brainstrain to switch to XMOS xCORE processors (q.v.), of course!Hardrealtime hardware/software ecosystem without FPGAs

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 17, 2023, 08:21:37 pm
content: Quote from: tggzzz on September 17, 2023, 11:20:55 amAdaptive control systems are decades old. If it sounds trendy to call them "AI" these days, let's have at it.