Better HN
topnewbestaskshowjobs
Log inSign up

crazypython

4,542 karma · joined Jul 18, 2019 (7y ago) · 1,228 submissions

Submissions

1081.

The D Language Foundation(dlang.org ↗)

1 points · by crazypython · 6y ago · discuss

1082.

Dub – Dlang Libraries(code.dlang.org ↗)

1 points · by crazypython · 6y ago · discuss

comment 6y ago · link · parent

Walter Bright founded Dlang and continues to be the primary author of its compiler frontend. He is the sole author of dmc++/Zortech C++, the world's fastest C++03 compiler.

comment 6y ago · link · parent

GCC 10 supports Dlang directly. (The support is still immature and it's being updated to the newer version of Dlang.)

Dlang compiles quickly not because the language is simple, but because the compiler authors care about compilation speed:

Lexer skips four spaces at once https://github.com/dlang/dmd/pull/11095

Optimize core logic to 7x compilation speed of language feature https://github.com/dlang/dmd/pull/11303

Cache rarely used types to improve memory locality https://github.com/dlang/dmd/pull/11363

comment 6y ago · link · parent

In response to this post, I wrote "Dlang for JavaScript Developers." Here it is: https://news.ycombinator.com/item?id=23747652

1086.

Dlang for JavaScript Developers – Functions and Control Flow(crazypython.github.io ↗)

2 points · by crazypython · 6y ago · discuss

1087.

Onelook Thesaurus with the Query “Bamboozle”(onelook.com ↗)

1 points · by crazypython · 6y ago · 2 comments

comment 6y ago · link · parent

I use an app that tracks the active application and file on the computer, including URLs, open folders, open projects. (not affiliated with them, just a user) https://timingapp.com/

I save articles I find interesting to a personal knowledgebase and read them offline.

I read multiple books at once, sometimes on the same topics. This helps me by always having a book that matches my mood, by always having many books.

comment 6y ago · link · parent

GPL protects the rights of users. It does not protect the rights of creators.

comment 6y ago · link · parent

The actual algorithm should probably stay secret to prevent manipulation of Hacker News. But, details would be useful to others building similar social networks around other principles.

1091.

The whole web at maximum FPS: How WebRender gets rid of jank(hacks.mozilla.org ↗)

2 points · by crazypython · 6y ago · discuss

comment 6y ago · link · parent

D skips generating a high-level intermediate representation. (HIR) D has its own, mature version of Cranelift, the DMD backend, which generates fast codegen.

Furthermore, like Rust, D has a mature LLVM backend. When compiling D programs with DMD and LLVM in -O0, LLVM only took slightly longer.

1093.

Checkpoint and Restore in Userspace usage scenarios(criu.org ↗)

1 points · by crazypython · 6y ago · discuss

1094.

D Forums: Mailing list with convenient web interface: autoquoting, notifications(forum.dlang.org ↗)

2 points · by crazypython · 6y ago · discuss

comment 6y ago · link · parent

It didn't work when I tweeted "frequency oxygen" and waited a few minutes. I suspect it needs a few extra words to trigger the alarm.

comment 6y ago · link · parent

Sadly, it doesn't seem to support SSH, so I can't use it to replace Fabric scripts.

comment 6y ago · link · parent

I hear Perl has weak typing with implicit type conversion. The only other language I know that has a powerful implicit type conversion system is C++. How does implicit type conversion work in Perl?

comment 6y ago · link · parent

D has the `rdmd` command for running D code in one command.

comment 6y ago · link · parent

You could rename it to "run.c" for "run dot c file." Bash supports many special characters in command names.

comment 6y ago · link · parent

Well, in that case, the journalists should adapt and give credibility through pseudonymity.

comment 6y ago · link · parent

This seems like a good way to suppress bots that upvote posts that incite violence or severe verbal abuse or gingoist. However, I am afraid if they start doing this for discussion on COVID-19.

1102.

Ask HN: What food is quick to make and tasty to eat?

3 points · by crazypython · 6y ago · 4 comments

comment 6y ago · link · parent

A good theoretical understanding will never replace a compiler that yells at you for making a mistake in that theoretical understanding. Learn teh theory instead.

comment 6y ago · link · parent

Depends on your codebase. JetBrains use a fork and rebase model.

comment 6y ago · link · parent

Does this man have the ability to host on localhost and have other people interact with his program via network?

comment 6y ago · link · parent

Without a garbage collector? A garbage collector is a gift, not a restriction. A garbage collector is a fallback for when other mechanisms fail, and a helpful tool for prototyping.

A garbage collector is a function that frees memory through tracing. It doesn't stop you from freeing memory another way. D's GC isn't a Java or JavaScript or Go GC, it doesn't have overhead-inducing write barriers.

1107.

Contracts, Undefined Behavior, and Defensive Programming [pdf](open-std.org ↗)

1 points · by crazypython · 6y ago · discuss

comment 6y ago · link · parent

D with its borrow checker. D has a GC- yes- but that merely gives you the option of having tracing delete your memory. You can manually free GC memory and have it freed through RAII.

1109.

Three polyglots, two period-two quines, and one code-golf challenge(codegolf.stackexchange.com ↗)

2 points · by crazypython · 6y ago · discuss

1
363738
41