Questions tagged [programming-languages]

A programming language is an artificial language designed to express computations that can be performed by a machine. **Please note:** As is the case elsewhere on Stack Overflow, resource and tutorial recommendation requests, requests for lists of things ("which languages have this feature..."), and excessively opinion-based ("what's the best...") questions are off topic.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
12 views

What does the term "programming language" refer to? [closed]

I understand that the term "programming language" refers to the syntax of instructions we write as programmers. I'd like to clarify if it encompasses just syntax design or just the ...
Ömer Faruk Konca's user avatar
-4 votes
0 answers
11 views

Exploring the Most Promising Upcoming Programming Languages for [Current Year] and Their Practical Applications [closed]

I'm eager to stay ahead in the tech landscape by exploring the most useful upcoming programming languages in [current year]. Could you share insights on languages gaining prominence, their practical ...
Chandan Gupta's user avatar
2 votes
1 answer
77 views

Overloaded Subprograms in Ada

Our Programming Languages professor told us that: "In Ada, the return type of an overloaded function can be used to disambiguate calls (thus two overloaded functions can have the same parameters)&...
Elco's user avatar
  • 117
0 votes
2 answers
65 views

Java bytecode not in .class file

I'm working on a personal project just for fun, a new programming languages (just because there are not enough). I m going to make it run on JVM but I need to store some metadata in the compiled file. ...
rain 183's user avatar
-1 votes
0 answers
10 views

How to process texts on PC screen in real time?

I want to process the texts on PC screen in real time by following the mouse pointer when I have multiple monitor setup or the primary screen when I have only one monitor. So, I had the idea that I ...
rng70's user avatar
  • 23
0 votes
0 answers
19 views

Estimating the Percentage of Changes in Programming and Natural Languages over a 10-Year Period

I'm trying to estimate the percentage of changes in programming languages and natural languages over a 10-year period. I would like to know if my estimations are reasonable and if there are any ...
SL5net's user avatar
  • 2,387
0 votes
1 answer
68 views

Which programming languages don't treat if as syntax?

In which programming languages is a conditional block (if) not syntactically different than a function invocation, including any "else" block of code to be executed in the false condition? ...
sondra.kinsey's user avatar
0 votes
0 answers
50 views

Can I compile the java code in something like a dll to use inside the Python code, and use this before in a pyinstaller compiled program? [duplicate]

I want to use a Java project inside Python, I read that some Python libraries do it. But my question is it: If I do it, can I compile before all the code with pyinstaller or can I compile the java ...
DazzRick's user avatar
  • 105
0 votes
1 answer
35 views

How to implement mutual calling between different programming language by shared library?

Recently, I have been interested in how Apache can support Python WSGI. After researching, I found out that there is a mod_python module, which is a shared library written in C. Furthermore, I also ...
Skipper's user avatar
  • 183
0 votes
1 answer
38 views

How does the value of an untouched integer change here? [duplicate]

This really, really messed with me today. This is the most minimum working example I could get: array = [ 1, 2, 1, 3, 4 ] n = 3 ...
user129393192's user avatar
0 votes
0 answers
21 views

How to make Intellij highlight and collapse code (in your own language)?

I'm making my own programming language. But now I want Intellij to highlight my new language and also - and that is very important for me - to collapse code blocks. What I mean by that is the ...
Zwerg's user avatar
  • 21
0 votes
1 answer
44 views

SICP Environment Diagram with Mermaid.JS

I'm trying to draw an environment diagram, as defined in SICP (see here), programmatically, such that a diagram will be associated with an evaluation of an expression. I'm testing Mermaid.js for that ...
Gino's user avatar
  • 675
0 votes
0 answers
39 views

How to add support for concurrency to a VM

I implemented my own functional (not OO) programming language and a VM reading Crafting Interpreters, and I wanted to know how to implement concurrency. I searched for resources on this, but I still ...
bichanna's user avatar
  • 974
-4 votes
1 answer
99 views

How can I efficiently sort a large array of integers in ascending order?

I have a large array of integers containing millions of elements, and I need to sort it in ascending order. However, the standard sorting algorithms like Bubble Sort and Selection Sort are too slow ...
DinukaShashen's user avatar
1 vote
0 answers
61 views

Is this a reasonable way to construct the syntax node of an abstract syntax tree in C++ (or is there a safer or more memory-efficient construction)?

I am writing a (most likely bottom-up) parser for a new general-purpose programming language. My parser takes in a stream of tokens. For completeness, here is the token_t. struct token_t { // Kind ...
Jose Fruan's user avatar
0 votes
1 answer
78 views

Naming of the General Rust Raw String Literal Technique

In Rust, a raw string literal (emphasis mine): ...start with the character U+0072 (r), followed by fewer than 256 of the character U+0023 (#) and a U+0022 (double-quote) character. The raw string ...
Ryan Waskiewicz's user avatar
0 votes
1 answer
29 views

How is class property assigned in constructor call without being a parameter

I don't get behind the magic of these kind of calls, especially the second argument: [DllImport("Kernel32.dll", CharSet = CharSet.Auto)] The constructor of DllImport is called with two ...
kvirk's user avatar
  • 127
0 votes
0 answers
24 views

What should I learn to make an Investing and Bloomberg-style market monitoring application?

I started learning mobile programming with Kotlin. As I said in the title, I want to make a market tracking application. What technologies other than Kotlin do I need to learn? Will Kotlin alone be ...
Tesian's user avatar
  • 1
0 votes
0 answers
15 views

Reference Data for Programming Language Structures

I wish to ask about the existence of resources listing the mapping between programming language structures and their presence in various programming languages. So something like the following table ...
Indraneil Paul's user avatar
0 votes
0 answers
95 views

Where is the _start function

Here is a minimal example: int main (int argc, char **argv) {} and then % gcc main.c && otool -xv a.out a.out: (__TEXT,__text) section _main: 0000000100003f9e pushq %rbp 0000000100003f9f ...
user129393192's user avatar
1 vote
0 answers
25 views

Would an ECS-specific programming language be helpful?

I've thought about creating a programming language specifically for developing ECS, but I do not have enough experience to conclude whether or not it would be useful at all or not. Can anyone give me ...
quaivatsoi01's user avatar
0 votes
2 answers
116 views

Why are arrow methods not allowed in Typescript?

The suggestions to allow arrow methods in Typescript have been rejected on the basis on "changing Javascript as language". How would it exactly change the language to have one less character ...
Anton Duzenko's user avatar
1 vote
2 answers
62 views

How to handle Python exceptions in a decent way?

I am developing an online service with python. Since it is an ONLINE service, I do not want the service down under any circumstances. So I add lots of try.. except... to make sure that if anything bad ...
Cino's user avatar
  • 83
0 votes
0 answers
12 views

Advice on creating a slim, rechargeable GPS tracker for watches with longer battery life

I'm looking to create a GPS tracker that can be attached to a wallet or something, similar in function to an Apple AirTag but slimmer, rechargeable, and with a longer battery life. I'm wondering if ...
Matteo Sylvestre's user avatar
0 votes
0 answers
45 views

Documenting tool for a Programming Language itself

At first I thought about using doxygen for my needs, but then I realized that would be better to have some open source online tool to describe a programming language itself. For example, the official ...
Dennis V's user avatar
  • 584
1 vote
1 answer
144 views

What causes this equivalent code in Go and C to output differently?

I am learning about programming languages and trying to learn about the design principles behind them. Below is code for C and Golang for a simple test of associativity and precedence. #include <...
Joe's user avatar
  • 41
0 votes
1 answer
17 views

How to make a library in SDP

How to make a libary in sdp? Sdp is the most simple programming language. Even there are import Keywords but there is no export Or create import Keywords. The only ones that can export data is the $...
jxon's user avatar
  • 45
0 votes
1 answer
30 views

Antlr adding additional parameters to visit methods, accommodations for continuation passing style

I am trying to do continuation passing style for a simple programming language made with antlr. Typically you would have an eval procedure that takes as arguments the expression to be evaluated as ...
Plegeus's user avatar
  • 140
0 votes
0 answers
56 views

Which Lang is the fastet for working with xlsx-Files

i have an xlsx file with some sheets. What I want to do, is to Programming a small GUI that read out 150 Cells show the user up to 50 inputboxes and take the inputboxes-Value into an other sheet. Is ...
TheRob87's user avatar
0 votes
0 answers
5 views

What prints decimal numbers without a leading zero before the decimal point?

I'm curious to know which programming languages (if any) will print a decimal number without a leading zero by default in some/all situations. Examples: .193 -.125 -.2239e-9 I'm not interested in how ...
Gravis's user avatar
  • 989
1 vote
2 answers
93 views

why is `(((call/cc (lambda (k) k)) (lambda (x) x)) "HEY!")` evaluated to "HEY!"?

I am reading The scheme programming language and seeing this example in continuation section: (((call/cc (lambda (k) k)) (lambda (x) x)) "HEY!") => "HEY!" I cannot figure out ...
happybzy's user avatar
0 votes
0 answers
23 views

Best approach to save lines for tokens in a scanner

I'm writing an interpreted toy programming language and I was wondering what is the best way to save lines for the errors. Take the following example: fun foo() { print("Hello, world"); } ...
Nullndr's user avatar
  • 1,672
0 votes
1 answer
191 views

What is the correct approach to create a custom GoTo Definition behavior in VS Code extension?

I am creating a VS Code extension that supports a small proprietary language. One of the minimal requirements for it is to have a "Go To Definition" functionality for procedures only. Being ...
Nan Nanco's user avatar
0 votes
0 answers
16 views

Callers visibility of changes and mutations to the arguments in the non strict evaluation strategy?

All the strict evaluation strategies described here talk about if the caller would see the changes and/or mutations made to the function arguments within the scope of the called function. However, no ...
figs_and_nuts's user avatar
1 vote
0 answers
45 views

Techniques and terminology for learning a massive code base

This question is not specific to one programming language in particular, and perhaps intended to help someone who isn't formally trained in programming. I have always worked on my own and without any ...
Mikkel Rev's user avatar
0 votes
0 answers
19 views

Programming language where a small change in source code results in small change in behavior

In most programming languages making a small change in the code often results in a large change in behavior. You accidentally delete a random character and the program no longer builds, or crashes. In ...
Daniel Darabos's user avatar
5 votes
3 answers
211 views

What is the difference between a declarator and a direct-declarator?

In The C Programming Language, 2nd Edition, by authors Brian W. Kernighan and Dennis M. Ritchie, they talk about declarators and direct-declarators. The discussion starts in the book on p. 122 with ...
Joshua Ginn's user avatar
1 vote
0 answers
48 views

How do JavaScript runtimes implement binding functions to objects? [duplicate]

I'm implementing a JavaScript interpreter, and I can't figure out the details of binding functions to objects in JavaScript. A rudimentary example: const o = { x: 1, getX: function() { return ...
Adam Ruka's user avatar
  • 136
5 votes
2 answers
989 views

Does Rust allow distributing closed-source libraries?

I'm new at rust and just finished the book. I'm trying to understand whether everything in rust must be distributed in the form of source code, like golang perhaps. This may not be the accurate way ...
user1206899's user avatar
  • 1,634
0 votes
0 answers
24 views

Ad Hoc Polymorphism and Type Hierarchy

I'm trying to find out how to determin a blank in the following code { classes = [ class E extends _ , class D extends _ , class F extends C , ...
Stay-Metal's user avatar
1 vote
0 answers
37 views

How do I count whitespace lexemes (token)?

I'm studying programming language with ocw(stanford). x=0;\n\twhile (x < 10) { \n \tx++; \n } I understood that consecutive space,\n,\t count as one whitespace token. But in the lecture, it says ...
ignorant student's user avatar
0 votes
0 answers
39 views

Can you left factor this grammar, whose production bodies have no common prefixes?

The grammar is as follows: R -> R + T | T T -> T F | F F -> F * | P P -> a | b Terminals: {+, *, a, b} Non-terminals: {R, T, F, P} My understanding is that as there are no common prefixes ...
mon's user avatar
  • 25
-1 votes
1 answer
18 views

(Esoteric) programming language design escape characters multiple times

I'm creating an (esoterick) programming language. It's going well, this is what I have come up with: So the basics of the language is: Most of the core operations are one character. For example: % = ...
Burperino's user avatar
  • 123
0 votes
0 answers
98 views

How to create search engine in localhost

What is best for backend language and UI Design Framework. Python or others? Angular or others? Need best Suggestion for backend language and UI Design Framework.
Jatin Chavda's user avatar
-13 votes
2 answers
235 views

True or false: in a OO language that does not have pointers, all objects are references [closed]

Is it true that, in an object-oriented language that does not have explicit pointers, all objects must be references. Here a reference is like SO defines in the tag reference: A reference is a value ...
AlwaysLearning's user avatar
-1 votes
1 answer
100 views

Is lisp really the first interpreted high-level programming language? [closed]

Lisp is known to be the first high-level interpreted programming language appearing in 1958. Quoting from Interpreter (computing): The first interpreted high-level language was Lisp. Lisp was first ...
StackExchange123's user avatar
-1 votes
1 answer
165 views

What is the difference between r+ and w+ modes in python? [duplicate]

Python related question I tried playing with python but I couldn't make out the difference between r+ and w+.
Rishika Arora's user avatar
-2 votes
2 answers
77 views

What does __init__ do in python? [duplicate]

What does init in python language I was learning the python language and I am facing difficulty to understand init it. I tried to search about this on google but I am not cleared about this.
Aryan Mehra's user avatar
0 votes
1 answer
63 views

How does closures see context variables into the stack?

I would like to understand how the stack frame pushed by calling b() can access the value of x that lives in the stack frame pushed by a(). Is there a pointer from b() frame to a() frame? Or does the ...
aledruetta's user avatar
0 votes
2 answers
80 views

In PHP and C#, why foreach doesn't have a built-in check for null array/list? [closed]

In PHP, C# and may be other languages, why aren't languages developed to reduce writing code that isn't really necessary? Why for example foreach perform a loop on null array or list? I'm not a ...
Khalid Almannai's user avatar

1
2 3 4 5
83