Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ryao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
661.
▲
by
ryao
2y ago
I wrote a new daemon in C the other day. Plenty of people will continue to write software in C. Some will even write it in C++. There is nothing you can write that will convince the world to stop writing software in these languages. We went
662.
▲
by
ryao
2y ago
My copy of The C++ Programming Language for C++98 is still useful today, as is copy of The C Programming Language for C89. The idea that these books are no longer useful is absurd. Modern compilers still support those versions and the new v
663.
▲
by
ryao
2y ago
Both C and C++ release new versions. The compilers continue to support the old versions and people continue using the old versions (less so in the case of C++). Rust’s compiler drops the old version every time it has a new release. There is
664.
▲
by
ryao
2y ago
https://endoflife.date/rust
665.
▲
by
ryao
2y ago
Being decades old does not make it out of date. Until a few years ago, the Linux kernel was written using C89. While it has switched to C11, the changes are fairly small such that a book on C89 is still useful. Many projects still write cod
666.
▲
by
ryao
2y ago
Drivers can crash the rest of the kernel in Windows 7. People playing games during the Windows 7 days should remember plenty of blue screens citing either graphics drivers (mainly for ATI/AMD graphics) or their kernel anticheat softwar
667.
▲
by
ryao
2y ago
Microsoft never should have dropped Xenix to invent its own OS.
668.
▲
by
ryao
2y ago
That aside, if you ask me, the cheapest way is to get rid of US jobs. Remove the US parts so you have a 100% non-US product. 0% tariff so far. For US-only sales have it assembled shipped to a country like Singapore or Australia with 10
669.
▲
by
ryao
2y ago
Why did you retire it?
670.
▲
by
ryao
2y ago
It is a shame the article did not explain that.
671.
▲
by
ryao
2y ago
The advantage of electron was that the client side scripts in the renderer and the backend use the same language and the two can share data easily (although not so much these days given disabling that is done for security). Whenever I use e
672.
▲
by
ryao
2y ago
That is irrelevant as he is talking about the Python http server that runs CGI executables, not using Python as a CGI executable. As for the latter, it is still an option: https://pypi.org/project/legacy-cgi/
673.
▲
by
ryao
2y ago
Given that the article’s comparison is between a HTTP server with fastCGI, and writing a little HTTP server, the web server with fastCGI will scale better, contrary to what the article suggests. It also would likely be more secure. Reverse
674.
▲
by
ryao
2y ago
Am I the only one who had no idea that these sectioning elements existed? Lighthouse will flag a warning if <h1> is used without a specified font-size. This seems like a silly warning to give if there are no sectioning elements
675.
▲
by
ryao
2y ago
If you find yourself with a scripted language where processing HTTP requests might be too slow or unsafe, I can still see some utility for FastCGI. For most of the rest of us, HTTP won, just write little HTTP webservers. Without ser
676.
▲
by
ryao
2y ago
How do tariffs affect finished graphics cards assembled in China? Is the tariff set based on the expected retail price, the BOM + assembly costs, or something else? If it is set based partly on BOM, would components with different countries
677.
▲
by
ryao
2y ago
GPUs reportedly will be immune to tariffs if assembly moves to Canada or Mexico, even if they incorporate Chinese components that would qualify for tariffs if directly imported into the U.S. for use in graphics card assembly: https:/&
678.
▲
by
ryao
2y ago
Are there any alternatives to JLCPCB that are cheaper post tariffs for small order quantities of 5 to 25? I ask because I am not aware of any options that come close. If there are, I know people who would like to know. By the way, I believe
679.
▲
by
ryao
2y ago
The responses to those prompts are not independently reproducible without the weights, the seed and software used to run the LLM, and in many cases, none of those are available.
680.
▲
by
ryao
2y ago
This would be an interesting variant of greylisting. Anything sent after business hours goes on the greylist.
681.
▲
by
ryao
2y ago
COM files on Windows are always 16-bit. His CON files appear to be the native bit width of the kernel. This means unlike on Windiwsm his COM files cannot execute on both 32-bit and 64-bit versions of the kernel. That one imperfection aside,
682.
▲
by
ryao
2y ago
I had this itch once in college. I think I got down to a few thousand bytes. He has outdone my college attempt by orders of magnitude.
683.
▲
by
ryao
2y ago
SGI’s UV 2000 could scale to 4096 logical cores and 64TB of RAM around 13 years ago. The current 4096 core limit in Linux is from that.
684.
▲
by
ryao
2y ago
I am not sure about the 360’s terminals, but some terminals could display graphics via sixels. Konsole and xterm are capable of showing them in the present day if you run a terminal copy of word perfect.
685.
▲
by
ryao
2y ago
I think you replied to the wrong person.
686.
▲
by
ryao
2y ago
I used to like C++. Then it caused me headaches one too many times because of things it implemented that C did not have. Now I prefer to use C whenever I can, since it avoids entire classes of headaches that only exist in C++.
687.
▲
by
ryao
2y ago
Advertising medicine, medical services and legal services used to be illegal because it is unethical. Then the US Supreme Court ruled it had to be legal. This is just stating history. Interpret it as you will.
688.
▲
by
ryao
2y ago
I want to write C code, not C++ code. Even if I try to write C style C++, it is more verbose and less readable, because of various C++isms. For example, having to specify extern “C” to get sane ABI names for the Nvidia CUDA driver API: htt
689.
▲
by
ryao
2y ago
They replaced C with C++. For example, try passing a function pointer as a void pointer argument without a cast. C says this should work. C++ says it should not. There are plenty of other differences that make it C++ and not C, if you know
690.
▲
by
ryao
2y ago
CUDA was born from C and C++ It would be nice if they actually implemented a C variant of CUDA instead of extending C++ and calling it CUDA C.
More ›