Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
95 views

I am writing a lisp interpreter with rust. I already have a lot of functions, but the loop does not seem to work. The loop is until, which is the opposite of while. It loops until the value is t. use ...
Felix508's user avatar
2 votes
5 answers
185 views

Preamble So i've noticed that a lot of functional / jitted languages (eg julia, numba jit for python) have virtual methods attached to "functions" rather than classes, and those "...
Daniil Zuev's user avatar
0 votes
0 answers
59 views

I am trying to extract intermediate outputs from a quantized TFLite model using the TFLite interpreter. The goal is to verify that the model's intermediate outputs match the mathematically expected ...
user30607871's user avatar
1 vote
1 answer
92 views

I have multiple Python Paths to choose from as seen in the images. I remember installing Python via brew and through the internet and Anaconda. I don't have any idea which are redundant and what to ...
Vale's user avatar
  • 33
-6 votes
1 answer
58 views

im trying too import packagaes to my pycharm such as tensorflow and the same message pops up saying the term (import) is not recognized. My understanding is that pycharm is interpreting these commands ...
Jason NuKes's user avatar
0 votes
1 answer
72 views

So for example if I have this python code def adder(x,y): return x + y So I am tracing the values of variables for python source code and I want to run the sys.settrace using my trace function on ...
Anuj Kumar's user avatar
0 votes
0 answers
38 views

I'm trying to learn to use conda the "right" way. In the past I was creating new virtual environments using the shift+command+p combination and picking the "create environment" (I'...
ilya's user avatar
  • 1
1 vote
0 answers
42 views

For some time now, I’ve noticed that PyCharm automatically associates the system interpreter with every folder I open as a project for the first time. This isn’t the same as creating a new project—it’...
stiky's user avatar
  • 11
1 vote
1 answer
112 views

The V8 Engine contains both Ignition "Interpreter" (which is an interesting name for something that not only interprets) and TurboFan Compiler. TurboFan compiler helps to optimize "hot&...
sebkaminski16's user avatar
0 votes
2 answers
61 views

I am trying to run a Python file from a codebase, and have created a minimal example to explain the issue that I am facing. foo ├── bar │   ├── burp │   │   └── cache.py │   ├── __init__.py │   └── ...
Abhilash's user avatar
  • 199
0 votes
1 answer
88 views

I have this computer program that's supposed to draw a Hand of Mahjong Tiles from a deck: # imports random import itertools, random # make a deck of tiles deck = list(itertools.product(range(1, 5), ...
Anonymous's user avatar
1 vote
0 answers
92 views

I am in the process of optimizing a program that interprets some byte code, and depending on it jumps to different instructions. Since we have the instruction in byte code already ordered from 0-17, ...
Kosmas Xenakis's user avatar
0 votes
0 answers
77 views

I am running an code which performs inference for several hours. However when it seems to randomly pause. But when I move the VS Code's terminal border/window slightly, it starts executing. I don't ...
Shubeeksh K's user avatar
-1 votes
2 answers
119 views

Why is the CPython interpreter not executing the previous statements if an EOL syntax error occurs in a later line? I thought that an interpreter is supposed to execute all the statements in a file ...
tony pd's user avatar
0 votes
0 answers
74 views

When I select a virtual environment (created with mac default venv command) as my interpreter for a Python file in VS Code, it doesn't change the Python executable path and instead uses my base ...
FirstTryBogoSort's user avatar
0 votes
1 answer
798 views

I've been having issues with the terminal in PyCharm recently it always gives me this error message: Cannot open Local Failed to start [powershell.exe, -NoExit, -ExecutionPolicy, Bypass, -File, C:\...
Raiz59ru Lion's user avatar
0 votes
1 answer
56 views

In the following small grammar, I am confused about how this basic rule for defining a binary operator combination can be converted to an LL(1) grammar that will produce a left-associative AST: ...
bruh bruhbruhbruh69's user avatar
0 votes
1 answer
166 views

I'm working on the crafting interpreters book and as a personal project I've decided to implement JLox on Go instead of Java mainly to learn Go. Currently I'm stuck with the parser, I'm unsure how to ...
Enrique's user avatar
  • 11
1 vote
1 answer
60 views

I am making a interpreted language using python, named Spearhead. My terminal, when trying to run the command "+r {+r is how i run files} [path to file to be interpreted]" It gives me my ...
ilov3gam3z's user avatar
1 vote
1 answer
62 views

I'm using a Tcl-based framework for building packages (MacPorts) and would like to implement an atexit-like feature where I can print some information in case a build fails and the framework aborts. A ...
RJVB's user avatar
  • 820
0 votes
2 answers
83 views

I am creating a Python programming language, named Spearhead. I have a working terminal, made via the Subprocess module. The issue is that I am using check_output to catch python errors, and not ...
ilov3gam3z's user avatar
0 votes
1 answer
63 views

I am creating a programming language named Spearhead using Python, I have a parser named Parser.py, inside a subfolder of the Spearhead folder this is all contained in named raw_exec [that has a empty ...
ilov3gam3z's user avatar
0 votes
0 answers
42 views

I'm building a simple command line interpreter in C, and I've encountered an issue with handling file descriptors when using pipes. The interpreter is supposed to support piped commands, but I'm ...
MwahMallah's user avatar
0 votes
0 answers
25 views

I'd like to create a development environment using a python or a bash script. I want to connect PyCharm to python interpreter in a docker container by running the script. Is that possible? What files ...
Mirt's user avatar
  • 1
-1 votes
2 answers
82 views

So a question I can't find a clear answer to is if my python interpreter that I have selected (where it shows 3.12.5('.venv':venv) is set that way because I selected to create a virtual environment. ...
Jacob White's user avatar
-2 votes
1 answer
86 views

The code below is a rough cut implementation of the brainfrick interpreter in Java. The specs I'm using are as follows: Brainfuck commands > Increment the pointer. < Decrement the pointer. ...
Aritro Shome's user avatar
-1 votes
2 answers
92 views

I've started learning Lime. When I use LimeTabular form Interpret, I face a problem that I according to the standard complete the function but it doesn't work. The error is TypeError: init() missing 1 ...
pan kai's user avatar
-2 votes
2 answers
390 views

I activated the virtual environment of my project via the terminal and then opened the project path in VSCodium. However, VSCodium fails to find the interpreter of the virtual environment when I try ...
BeNavon's user avatar
0 votes
1 answer
120 views

We are trying to deploy vision transformer models (EfficientViT_B0, MobileViT_V2_175, and RepViT_M11) on our flutter application using the tflite_flutter_plus and tflite_flutter_plus_helper ...
D.Varam's user avatar
-1 votes
2 answers
1k views

My company computer came pre-installed with Python version 3.13. Unfortunately, the standard we've been using for the past few years is version 3.7.0, which means a lot of our packages/venvs are ...
NicholasTW's user avatar
0 votes
0 answers
41 views

I have cleanly and successfully installed PyTorch and associated packages within my virtual environment (BotVirtualEnv). It passed all required tests, including that of Python Interpreter and ensured ...
sBliss_'s user avatar
0 votes
1 answer
104 views

"Suppose we have a grammar like this, where alpha could be any sequence of terminals and nonterminals: A -> A alpha | B We can rewrite this grammar as: A -> B A' A' -> alpha A' | ...
Will Ponczak's user avatar
0 votes
1 answer
103 views

So, I am making a really simple Python interpreter. But, there is a part in the interpreter that checks for if statements. But, whenever I use this interpreted if statement, it checks every other ...
i_suckatcode's user avatar
0 votes
1 answer
40 views

I'm using sass-rails gem and I try to use css variable like this : --h: 198 --l: 38% --c: hsl(var(--h), 100%, var(--l)) background-image: linear-gradient(to right, var(--c) 0%, #000 100%) ...
Matrix's user avatar
  • 3,395
0 votes
1 answer
96 views

I am developing an interpreter that converts an Intermediate Representation (IR) into an Assembly. However, I have a doubt that it is necessary to convert each instruction individually to Assembly, as ...
Remove's user avatar
  • 34
1 vote
1 answer
107 views

I would like to intercept the queries handed to the interactive Prolog interpreter, in order to do some extra processing, e.g. to log the queries. So far I have the following code that relies on the ...
gernot's user avatar
  • 276
0 votes
0 answers
119 views

I am writing a JIT compiler for an extension of Brainfuck that has functions. Functions are referred through a function pointer that you can increment/decrement and call it. My approach is that it ...
user92523's user avatar
0 votes
1 answer
1k views

enter image description here I'm encountering a peculiar issue while running Python code in Visual Studio Code (VSCode) with Python 3.12.3. When I execute a simple print("Hello") statement, ...
Psyfer.Dev's user avatar
0 votes
1 answer
191 views

I have made custom add-in using xlwings. I have one dictionary where is: phodnota.py, phodnota.xlam and Python311 (dictionary with python interpreter and all needed libraries). The problem is that ...
IchNar's user avatar
  • 11
0 votes
0 answers
96 views

I'm following the CPython internals guide from Chapter 7.5 on adding an operator. The guide uses the example of the "almost equal" operator (~=). Despite following the prescribed steps and ...
Damarion Abendanon's user avatar
1 vote
1 answer
45 views

I'm creating a grammar for an interpreter in PLY. At the moment I'm trying to implement embedded function calls as expressions, but I'm having a problem seeing where the conflict is for the following ...
luisepa1420's user avatar
0 votes
1 answer
100 views

I have just learned something about GADT in OCaml through Real World OCaml, and want to try to transfer the first little language there into a interpreter, thus using menhir. The ast definition is ...
stormckey's user avatar
0 votes
1 answer
329 views

I am a newbie in programming and have been learning only for a little while. I am trying to get started using PyCharm but it does not manage to create an interpreter in Python3. When I try to create ...
Gralhos's user avatar
  • 53
-4 votes
2 answers
898 views

I have a virtual environment with some installed packages and a notebook with some imports of packages that only exist in this environment. I have done Ctrl + Shift + P > Python: Select Interpreter,...
someguy's user avatar
  • 324
1 vote
1 answer
109 views

I'm currently writing an interpreter and it's strongly typed. It has short, int, long, float, and double. I want to make binary operation between 2 numbers and have an implicit cast. For example, I ...
Sohryuu's user avatar
  • 11
0 votes
0 answers
69 views

In a project I have to use both 32bit and 64bit python interpreters, specifically 32bit for pyodbc library(required for older version of MS access DB) and 64bit for pandas, work could be done without ...
G_G's user avatar
  • 1
0 votes
1 answer
69 views

I am attempting to execute a function within a Python script as a subprocess using its own interpreter, specified in the subprocess.run() call. This interpreter may include packages not present in my ...
Novice_Developer's user avatar
0 votes
1 answer
81 views

I am working with PyCharm and encountered a ModuleNotFoundError when I try running a script that was working about half a year ago. It says: File "lalala/main.py", line 5, in <module> ...
chapatti's user avatar
1 vote
0 answers
68 views

I would like to save figure as EPS-files with a special font. I can do that with latex as interpreter, but that also means the text in the EPS figures are no longer selectable or searchable, which I ...
Samuel Estenlund's user avatar
0 votes
1 answer
72 views

I am working on interpreting word attributions using the transformers_interpret library for a fine-tuned model in a natural language processing task. I want to print all the attribution scores and ...
DavidS's user avatar
  • 77

1
2 3 4 5
46