khoobid_shoma
khoobid_shoma on Hacker News
Posted by
khoobid_shoma on Monday February 09, 2026 @04:01PM
from the ask-hn dept.
Hello
Today, I got a suspicious message from a stranger Telegram user.
After some minutes, I opened the notification and only read the message without opening any link. Then immediately, I got an error about no service availability for my simcards. I do not remember the exact error message but it was something like that.
I restarted my phone immediately and re-insert the simcards (from...
It's great that the implementation is in C and not in less efficient but fashionable languages.
Posted by
khoobid_shoma on Sunday November 05, 2023 @05:10PM
from the github.com dept.
Posted by
khoobid_shoma on Sunday August 27, 2023 @06:50AM
from the ask-hn dept.
Posted by
khoobid_shoma on Saturday July 22, 2023 @08:26PM
from the ask-hn dept.
I am using C++ and Python at work everyday. But, for the personal projects, I always use C. I had a new idea in ML and finally started its implementation yesterday. In the limited time, I made a very good progress which I think was not achievable for me if would have chosen any other language.
I asked ChatGPT that if it can replace Google search engine. It says :
"As an AI language model, I do not have opinions or personal thoughts. However, it is unlikely that chatbots like ChatGPT will replace traditional search engines like Google in the near future. While chatbots like me can provide quick answers to specific questions and engage in conversational interactions, they still have limitations and are not as comprehensive or efficient as search engines like Google. Google and other search engines have access to vast amounts of information and use complex algorithms to deliver relevant and accurate results.
That being said, chatbots like me can complement traditional search engines by providing an alternative, more conversational interface for accessing information. Additionally, advances in natural language processing and AI technology may lead to chatbots becoming more sophisticated and capable of handling more complex tasks in the future."
Axiom:
Human rights + Oil price = 0
It's easier to say goodbye C++!
Posted by
khoobid_shoma on Monday August 15, 2022 @08:27AM
from the ask-hn dept.
Posted by
khoobid_shoma on Monday August 15, 2022 @04:31AM
from the youtube.com dept.
Was it necessary to use Ninja?
I hope more laptops be listed in the future...
Posted by
khoobid_shoma on Wednesday July 27, 2022 @06:12PM
from the ryf.fsf.org dept.
Yeah, that's unfortunate it does not support UEFI out of the box.
Still that's C code. Code is an input to the compiler. So, I would not call the code differently just because later a C++ comiler is used. In C++ code, we expect C++ specific features be used.
> "Let us consider the following C++ code:"
But, C code is shown. I do not get why people tend to avoid using C name.
The title is a bit misleading. This is about extending C grammar used in D.
The numbers do not say what is really better. It just reflects responders' opinions.
Posted by
khoobid_shoma on Monday June 13, 2022 @06:54PM
from the gcc.gnu.org dept.
I guess it is better to measure CPU time instead of wall time (e.g. using clock() ).
I think C is the best option which is simple, fast and powerful. You need to introduce a separation layer to decouple your core implementation from the graphics, networking... libraries. This makes porting to other OSes or switching to the other libraries easy.
Well, then the same is true for Afganistan. By destroy, I did not mean they have attacked every village.
you wrote: "The United States has the ability to wage numerous simultaneous wars around the world"
An example of those wars is Afganistan. Yes, the US managed to destroy the country but could not win the war. Russia also destroyed Ukraine and probably will not win the war.
What happens to the next GPUs you buy?
I have wasted a lot of money buying nVidia GPUs. They used to be quickly outdated for different reasons (e.g. unsupported by the next versions of CUDA). I decided to stop buying new ones until I really really need a modern GPU. Now, that's around 7 years, I am happily away from nVidia GPUs. If needed, I would get a GPU instance on cloud.
The same issue is with Apple iPads (my iPad One still looks new but software upgrade is not supported anymore).
For sanctioned countries, there is a very good chance to start successful Amazon alternaives as e.g. Digikala did in Iran (
https://en.wikipedia.org/wiki/Digikala ).
Anyway, other than crypto solutions (if supported), there is no way to have financial transactions with giant western companies like Amazon. Shipping items is also another issue.
Targeting local customers is easier. Then you can expand the business to the allies countries.
I think topics are nicely explained in C and assembly but not C++.
IIRC, __restrict__ in clang and g++ does nothing when you write C++ code. It is there just for compatibility with C.
I think the C code in the benchmarks are not really efficient. An experienced C programmer does not simulate C++ style memory management if speed matters.