HNHacker News
TopNewBestAskShowJobs

drwu

48 karma · joined September 16, 2017

submissionscomments
drwu··on C extensions, portability, and alternative compilers
Complex numbers, for example. Also, C preprocessor expands macros differently on MSVC.
drwu··on I fixed Windows native development
I hope it would work with wine. Then cross compiling Win64 binaries from Linux would become convenient without requiring spinning up a Windows VM.
drwu··on Eurydice: a Rust to C compiler
Rust compiler can be easily bootstrapped.
drwu··on Unpowered SSDs slowly lose data
It is not 4 times, it is 16 times. Your 1TB storages would become 64GB.
drwu··on Lisp interpreter with GC in <750 lines of Odin (and <500 lines of C)
The antivirus program forced to be installed by my company does not allow .odin file to exist, as there is a ransomware which encrypts files into *.odin.

Of course, git cloning the ALE plugin (linter + languageserver) for VIM also fails as ALE has an .odin file in its repo.

drwu··on What to do with C++ modules?
To be fair, MSVC has the most C99 stuffs. What is mainly missing for porting (my) programs is the native complex number. But we have Intel compiler for free on Windows, which is fully compatible with the C/C++ standard and produces faster binaries.

The C++ frontend of MSVC handles (the common) compiler-specific language extensions differently than the other compilers. Besides, its pre-processor behaves differently too. It is now good that there is a clang frontend for MSVC.

drwu··on What to do with C++ modules?
It is a pitty that

- GCC switched from C to C++

- CUDA switched from C to C++

But I can understand the decision, and at that time , C++ frontend features and libs were a little bit less horrible.

drwu··on VIM Master
Agree that decisions/designs are important.

However, not everything can be well designed at the beginning. Skills of editing will affect efficiency, especially in a try-and-error loop of new ideas/approaches, where only a rough design exists.

Besides, some niche editing tasks (which may involve column editing, macro recording then batched execution, regex based operation, encoding transformation etc.) may otherwise require writing awk/sed or even perl/python scripts as subprojects to achieve, if one does not known the editor well.

drwu··on My favourite fonts to use with LaTeX (2022)
Unfortunately, the rendering of fakebold (especially if the factor is not 2) depends on PDF readers and printers. Some PDF programs handle it well, some fix the factor at 2, some do not implement it at all.
drwu··on Mathematical Problem Solving
Well, these are not the hardcore math, they are just puzzles and games.
drwu··on Google has most of my email because it has all of yours (2014)
I would bet/hope that I can live longer than most IT companies.
drwu··on How to program a text adventure in C
I thought it was something like LPMud or MudOS [0].

[0] https://mud.fandom.com/wiki/MudOS

drwu··on Automated Antenna Design with Evolutionary Algorithms [pdf] (2006)
The requirements and constraints depend on the product. For example, the geometry of your product to accommodate the antenna is not always the same; the (internal and external) environment of the case is also different; there may be requirement of combining various frequency bands into one antenna; etc.
drwu··on Why is this site built with C
I totally agree. Just using a POSIX shell to concatenate header/footer and include the required CSS file, a simple static blog generator can be easily made. (That is what I did with mine.)

No Markdown, no Perl/Python/Ruby, also no binary program, just a few simple shell scripts and plain HTML files.

drwu··on My Favorite C++ Pattern: X Macros (2023)
Another issue is cross-compiling.

External code generation requires (cross) execution of the (cross) compiled binary program.

drwu··on I stopped everything and started writing C again
Also fast to compile!
drwu··on Falkon: A KDE Web Browser
I'd like to see the feature of preventing the OS from sleeping before downloading has been finished.
drwu··on C is not suited to SIMD (2019)
The function declaration in the header file of the library can carry the required 'restrict'. It works for c++ invokers too, as most c++ compilers also support and check the __restrict__ for old plain pointer types.
drwu··on Conda: A Package Management Disaster?
I am using Conda to build binary modules for different Python versions.

As user of the modules, venv is sufficient.

drwu··on Himalaya: CLI to Manage Emails
Yes! I use mutt for searching, tagging, thread operations (splitting,appending etc.), bouncing, attaching other mails, deleting attachments, openpgp (personal), smime (at work), and it works with IMAP out of the box.

I am also able to integrate (a locally hosted) LanguageTool to check the grammar in the editor.

The only issue is to write emails with embedded images. But personally I don't like such emails for occupying the space of the mailbox.

drwu··on Why CSV is still king
One typical scenario is to embed a CSV (or whatever it is called) into another one.
drwu··on Genetically synthesized supergain broadband wire-bundle antenna
This looks like just a little bit advanced trivial optimizations for reducing size of high gain antennae. Usually I expect to find such articles in IEEE Transactions on Antennas and Propagation.

What is the reason that it appears on Nature? Just because the genetic methods become the hype (again)?

drwu··on I learned Haskell in just 15 years
When Haskell was a hot topic around two decades ago, ML was also quite often discussed. Today ML almost only means machine learning
drwu··on Sioyek is a PDF viewer with a focus on textbooks and research papers
Sioyek has nice features, however, it was quite buggy. Fixing bugs and writing tests may take a lot of efforts.
drwu··on Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
No one in the comments mentioned OpenACC or OpenMP offloading, which is the main reason for me to start new projects in C++ (or even in C/Fortran for simplicity).
drwu··on The Catacombs
I thought Skyrim was a fantasy game, until I visited the catacomb on the countryside of Rom. It was more impressive than Palatino.
drwu··on Portable Web Documents – An Alternative to PDF Based on HTML5 (2019)
For the scanned documents, I used to compressing them with jbig2 as one of the post-processing steps.

Representing the pages as big images not only takes more space to store/archive, but also increases IO-time for loading the documents.

drwu··on 86-DOS Version 0.11 Found
debug.exe did not like non-DOS EOL, which caused some problems when copying texts.

If I remembered correctly, debug was only capable of writing 64kB (mono-segment) data? Though one can always create an in-RAM program inside debug to output larger files.

drwu··on Suggestions: A simple human-readable format for suggesting changes to text files
I guess the way to suggest merging two paragraphs:

--[

]--++[ ]++

drwu··on Fedora Linux 34 is officially here
My mind automatically interpreted that spelling as "unstable". It turned out that "unusable" matches the context better.
Page 1 of 2Next →