Answer the question
In order to leave comments, you need to log in
What programming language is suitable for writing a high-performance application on Windows?
There was a need to write an application on Windows that will work with large amounts of text (replace text in 50,000+ lines of text with a regular expression, etc.) and I can’t understand which programming language is best suited for such tasks and which one they are the best to study.
Before that I studied Javascript and PHP. But their performance is not enough for me.
The priority of my requirements for the language:
1. The lower the load on the processor, the better (it is desirable that the executable code could "run for a long time but stably", that is, without crashes at 100% CPU load)
2. Zhor RAM when reading a text file 100 megabytes is not more than 1-1.5 GB
3. Not too high entry threshold
Answer the question
In order to leave comments, you need to log in
the answers are more than obvious, in order of performance priority:
- C++, D
- Rust, Go
- even C#
.. here are just wishes
programming language ... for writing a high-performance application on Windowsand
Not too high entry thresholdare the exact opposite
For example Rust or C++.
Why not?
As for the performance of regular expressions, I would argue. The fact is that regular expressions are a universal tool, and it is not free. It is much more productive to make your parser subject to the text restrictions that you know about. For example, if a piece of text has a clear marker, then you can find it with the simplest substring search. And then to the found piece also apply some kind of algorithm optimized specifically for this text.
A high-performance program for processing text with regular expressions already exists (more than forty years), and is called sed .
You can run it in a virtual machine, or in that Linux subsystem that is screwed to Windows , or using cygwin , or someone even assembled sed directly under windows , go nuts!
Yes, it’s possible to write this on a heap of everything, including js. You can look in the direction of go, learns in a week, is quite productive
If the text is in a file, then you can make a regular expression replacement using standard powershell tools.
If you need simplicity and high performance of a programming language, then try Nim
, you can also look towards Cython
Before that I studied Javascript and PHP. But their performance is not enough for me.
But what if MatLab or Haskell and parallel computing on the video processor?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question