Questions tagged [programming-paradigms]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

What are fundamental differences between single dispatch and multiple dispatch?

How do single and multiple dispatch differ? In particular, I am wondering why some programming languages, both interpreted and compiled (such as Python and Java), natively support single dispatch but ...
user's user avatar
  • 131
1 vote
2 answers
894 views

Does it make sense to call GAP a "procedural" language?

GAP is a computer algebra system (CAS) that Wikipedia tells me is written in C, a procedural programming language. Does this mean we can say GAP's language is procedural? Or is this characterization a ...
healynr's user avatar
  • 113
3 votes
1 answer
185 views

Is “x' = f(x)” a programming paradigm?

I'm the author of GateBoy (a gate-level simulation of the original Game Boy hardware) and Metron (a C++ to Verilog translation tool). One big issue I had to work around for both projects is the ...
tanjent's user avatar
  • 66
10 votes
4 answers
4k views

What are some interesting/important Programming Language Concepts I could teach myself in the coming semester?

I’m a CS senior with and Individual Study period this coming semester, and I’ve decided I’d like to learn more about Programming Language Concepts. More specifically, different programming paradigms, ...
swr52's user avatar
  • 119
1 vote
1 answer
334 views

Is object oriented programming considered to be a declarative programming approach?

Is object oriented programming considered to be a declarative programming approach? On Wikipedia, it is said that OOP tries to extend the imperative programming paradigm to a somewhat declarative ...
Pat8's user avatar
  • 165
0 votes
2 answers
63 views

Are objects appropriate for modeling the real world?

First of all, I know objects are not meant to model the real world, although they have been marketed as such and perhaps that was an intention at some point. Here I say 'modeling the real world' in a ...
Piovezan's user avatar
  • 113
0 votes
1 answer
576 views

Is there any connection between imperative programming and the Von Neumann architecture?

I have ran into a wall with this question in the exercise my teacher gave me, is there any actual connetion between the Von Neumann architecture and imperative programming ? I have tried googling and ...
Matt's user avatar
  • 3
1 vote
0 answers
54 views

What are the correlation between Actor model and Reactive Programming

Could anyone explain the difference/relation between the Actor model and Reactive programming? It seems that they are located at different levels of abstraction - one can design the interaction ...
newbie's user avatar
  • 11
0 votes
0 answers
48 views

What is the point-free version of f(x,y)?

What is the point-free version of f(x, y) ? Is it just f or some kind of function composition, since when curried there is an implicit function which is made ...
al pal's user avatar
  • 611
2 votes
2 answers
70 views

Using function composition to turn a function into point free one

In Tacit Programming page on wikipedia, it is stated that the point free version of p x y z = f (g x y) z is p = ((.) f) . g ...
al pal's user avatar
  • 611
3 votes
2 answers
431 views

The idea behind the state of Imperative languages

I was reading about programming paradigms and I have a question about the state when speaking about Imperative languages. What does it mean to change the program's state? Is it just an abstract idea? ...
vesii's user avatar
  • 223
1 vote
0 answers
72 views

Building an architecture without pointers, objects, memory allocation or first class functions [closed]

Many sources for good software architecture will use objects, pointers, memory allocation in their solutions. The PLC programming language 61131-3 Structured Text is really limited in this regard, ...
krakers's user avatar
  • 11
4 votes
0 answers
114 views

Is every von neumann machine turing complete? [duplicate]

I understand that TM is a 'Model of Computation' which tells us about the computational power of a machine while Von Neumann Architecture is a 'System Architecture' that tells us about how the machine ...
codecasterz's user avatar
1 vote
2 answers
882 views

What algorithm paradigm is a recursive solver of Sudoku?

I am interested in knowing what algorithmic paradigm are the usual recursive sudoku solvers. Can I consider it a local search? or are they Dynamic programming, greedy, divide and conquer, backtracking?...
AspiringMat's user avatar
2 votes
1 answer
576 views

What makes data flow analysis higher level than control flow analysis?

I feel understanding why data flow is higher level than control flow is key to writing good code (and convincing others during code reviews). I find this repeatedly when arguing why my functional ...
Sridhar Sarnobat's user avatar
20 votes
7 answers
3k views

Lambda calculus didn't seem abstract. And I can't see the point of it

The underlying question: What does lambda calculus do for us that we can't do with the basic function properties and notation generally learned in middle school algebra? First of all, what does ...
JDG's user avatar
  • 353
3 votes
1 answer
553 views

Can a purely declarative language really exist?

Wikipedia has several languages listed as declarative languages. One of these languages listed is XSLT, which is a language for applying transformations to XML. https://en.wikipedia.org/wiki/XSLT ...
Alan Wolfe's user avatar
  • 1,328
11 votes
2 answers
217 views

Is there a paradigm for composing "incremental update" functions in a pure dataflow style?

I don't know the correct terminology for asking this question, so I'll describe it with lots of words instead, bear with me. Background, just so we're on the same page: Programs often contain caches -...
Hallting's user avatar
  • 113
7 votes
1 answer
382 views

Can we do everything in imperative languages with a functional language if it does not allow for a 'state'?

I was reading Structure and Interpretation of Computer Programs (SICP), MIT. What I have understood is that in pure functional programming language, there is no such thing as a local state. SICP, pg ...
daltonfury42's user avatar
9 votes
3 answers
4k views

Differences between programming model and programming paradigm?

What is the relation and difference between a programming model and a programming paradigm? (especially when talking about the programming model and the programming paradigm for a programming language....
Tim's user avatar
  • 4,825
1 vote
0 answers
59 views

Computer Scientific term for languages outside the Logic Programming paradigm

Is there a term for languages, imperative, declarative, procedural, functional alike; a term describing the quality of functions being represented as a (reversible) relationship between inputs and ...
Erik Kaplun's user avatar
9 votes
1 answer
1k views

Flow-based vs. Reactive programming paradigms

I am reading Concepts, Techniques, and Models of Computer Programming and came across Flow-based (FBP) and Reactive programming paradigms. Now I have found the following article from J. Paul Morrison, ...
Jernej Jerin's user avatar
1 vote
1 answer
75 views

Are there any paradigms that describe how to save program state checkpoints that can be restored later?

I was wondering if there were any paradigms that describe how to save "state checkpoints" in a program so that a user may go back and reopen a program to the given state. In my situation I see that ...
KDecker's user avatar
  • 343
2 votes
1 answer
389 views

Do functional algorithms require more memory than imperative algorithms? [closed]

Let's suppose we are counting words in string. We split it so what we have is an array of strings. I'll use Python as an example. The imperative approach would as follows: ...
blue-dino's user avatar
  • 199
2 votes
2 answers
2k views

Break and Continue in Structured Programming?

One of the ways to ensure following the structured programming paradigm is by having all control flows having only one entry and one exit point. Does skipping iterations by using break and continue in ...
user avatar
1 vote
1 answer
355 views

Interactive example of Dynamic scoping and evaluation order of expressions

Given the following (arbitrary language, although I think it is close to Algol 60) program: ...
chris Frisina's user avatar
17 votes
9 answers
27k views

What problems of procedural programming does OOP solve in practice?

I have studied the book "C++ Demystified". Now I have started to read "Object-Oriented Programming in Turbo C++ first edition (1st edition)" by Robert Lafore. I do not have any knowledge of ...
user31782's user avatar
  • 271
1 vote
1 answer
211 views

How are programming paradigms classified? [closed]

When I started to learn about imperative programming and declarative programming it raised many doubts, like, how are structured, modular and object-oriented programming classified: declarative or ...
AshrithGande's user avatar
8 votes
2 answers
2k views

Isn't Functional Programming just Imperative Programming in disguise?

A YouTube video I was watching explained the differences between Imperative and Functional programming by demonstrating how the numbers from 1 to ...
CodyBugstein's user avatar
  • 2,937
2 votes
1 answer
70 views

Can a loop be expressed by only the sequence of statements and the choice of statements?

The theorem of structured programming says that any algorithm can be expressed by those three control structures: Sequence Selection Iteration Isn't it possible to rewrite any loop using a finite ...
gbag's user avatar
  • 709
23 votes
4 answers
4k views

Why do we use persistent data structures in functional programming?

Functional programming employs persistent data structures and immutable objects. My question is why is it crucial to have such data structures here? I want to understand at a low level what would ...
gpuguy's user avatar
  • 1,779
32 votes
2 answers
10k views

How do Functional Reactive Programming and the Actor model relate to each other?

FRP is about streaming events and behaviours through pure functions. The Actor model - at least, as implemented in Akka - is about streaming immutable messages (which can be considered to be discrete ...
Robin Green's user avatar
5 votes
1 answer
1k views

What would be the classification of R according to paradigms?

I would like to know in which classification is the R programming language. It has elements of the imperative paradigm and object oriented paradigm (some things like that even a number is an object ...
Layla's user avatar
  • 413