Better HN
topnewbestaskshowjobs
Log inSign up

drwu

48 karma · joined Sep 16, 2017 (9y ago) · 58 submissions

Submissions

comment 6mo ago · link · parent

Complex numbers, for example. Also, C preprocessor expands macros differently on MSVC.

comment 9mo ago · link · parent

I hope it would work with wine. Then cross compiling Win64 binaries from Linux would become convenient without requiring spinning up a Windows VM.

comment 11mo ago · link · parent

Rust compiler can be easily bootstrapped.

comment 12mo ago · link · parent

It is not 4 times, it is 16 times. Your 1TB storages would become 64GB.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Well, these are not the hardcore math, they are just puzzles and games.

comment 1y ago · link · parent

I would bet/hope that I can live longer than most IT companies.

comment 1y ago · link · parent

I thought it was something like LPMud or MudOS [0].

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

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Another issue is cross-compiling.

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

comment 1y ago · link · parent

Also fast to compile!

comment 1y ago · link · parent

I'd like to see the feature of preventing the OS from sleeping before downloading has been finished.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

I am using Conda to build binary modules for different Python versions.

As user of the modules, venv is sufficient.

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

One typical scenario is to embed a CSV (or whatever it is called) into another one.

comment 2y ago · link · parent

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)?

comment 2y ago · link · parent

When Haskell was a hot topic around two decades ago, ML was also quite often discussed. Today ML almost only means machine learning

comment 2y ago · link · parent

Sioyek has nice features, however, it was quite buggy. Fixing bugs and writing tests may take a lot of efforts.

comment 2y ago · link · parent

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).

comment 2y ago · link · parent

I thought Skyrim was a fantasy game, until I visited the catacomb on the countryside of Rom. It was more impressive than Palatino.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

12