Unanswered Questions
1,352 questions with no upvoted or accepted answers
0
votes
0
answers
58
views
Element-wise natural logarithm of large array
Let X be a numpy.array of np.float32 with shape (100,100,100,100). I'm computing the variable lX with the following formula
<...
2
votes
0
answers
78
views
backward induction algorithm computation
Is there a way to significantly speed-up this code?
I'm solving a dynamic programming model using a backward induction algorithm. A crucial step is to calculate the current-period value function (VF), ...
1
vote
0
answers
99
views
Runtime function overloading / dynamic dispatch for Python (2nd revision)
Second revision of the original post: Function overloading / dynamic dispatch for Python
TL;DR:
Improved version of this library[^1] based on previous reviews and criticism. It provides runtime ...
2
votes
0
answers
137
views
How to make this arbitrary precision π calculator using Machin-like formula run faster?
Two days ago (or yesterday depending on your timezone) was π-day. So I thought it was a good day to calculate π.
I used Machin-like formula to calculate π, in homage of William Shanks, who calculated ...
1
vote
0
answers
30
views
Evaluating an expression with shunting yard algorithm
I'm learning Scala and wrote a simple infix expression evaluator using the shunting yard algorithm. As opposed to the wikipedia example, this implementation evaluates the expression in place instead ...
1
vote
1
answer
101
views
Convolutional LSTM
I write code about convolutional LSTM, but I am not sure if mine is good enough. Is anyone interested in giving a look at my code?
...
3
votes
0
answers
39
views
Project of chrono, countdown, interval timer and custom timer
I created a project with visual studio, in V language. Since I am a beginner, I would like to improve the code by making it lighter and less repetitive, and more performing, and suitable to be run ...
3
votes
0
answers
80
views
Upload Data Products to OpenMetadata
I need to build a python application to interact with the OpenMetadata API (specifically, to upload a data in YAML format). However, I’ve encountered some intrinsic connections between the ...
4
votes
0
answers
212
views
Regression model is doing exceptionally very well on time series
I have the following task to do: I have time series data. Training by the consecutive 3 days to predict the each 4th day. Each day data represents one CSV file which has dimension 24x25. Every ...
1
vote
0
answers
69
views
Nostr OAuth 2 authentication using Fastapi
I liked the idea of being able to authenticate using your own private key using Nostr protocol. The idea is based on events, so you prove your identity by signing an event.
It's close to Wallet ...
3
votes
0
answers
53
views
Structure of nested Divs with a table
I'm a new frontend programmer.
I'm making a web site with flask, and to be honest, I don't know much about front-end so I don't know if what I'm doing is best practices. In one section, I have a div ...
2
votes
0
answers
50
views
N-Body simulator in Rust implementing Barnes Hut and Leapfrog
I have written a N-body simulator in Rust implementing Barnes Hut algorithm and Leapfrog integrator.
My code seems to work fine, but I'd like to review on techniques which can improve performance ...
0
votes
0
answers
145
views
Fuzz-test the performance of SmokeDetector's keywords regex
I had an idea for attempting to detect bad performing regexes in Charcoal-SE/SmokeDetector, by using Atheris (a fuzzer for python code).
The theory behind it is that a bad performing regex will most ...
0
votes
0
answers
52
views
Scrapy Spider - Code Audit and Optimization Suggestions
I've written a Scrapy spider to scrape product details from a specific website. The spider is designed to navigate through various pages, locate specific products, and gather detailed information ...
0
votes
0
answers
38
views
2D chunk loading/world generation in Godot (GDScript)
I'm a beginner with both Godot and gamedev concepts. I've made games before, but feature-wise, they were pretty simple in comparison.
One of the main concerns that I have now with my code is that ...