HNHacker News
TopNewBestAskShowJobs

TheMonarchist

64 karma · joined July 23, 2021

Someone's interests should be in line with those of the country.
submissionscomments
TheMonarchist··on Ask HN: How to Get Addicted to Studying?
IME understanding what a time waster videos are compared to writing helps.

Your eyes become faster than your brain when you read a lot; then you start automatically adjusting your reading rate to what your brain can handle. Videos on contrast have fixed speed, that is low enough to ensure that nobody loses track. Some tools can increase speed, but your optimal speed varies even in same video and you can easily miss things.

In writing you can easily go back if you notice that you missed something, but with video you can only go back to some point and watch again hoping that you went far enough back. IME the thumbnails on timeline are also useless.

I have resolved that videos just aren't worth my time most of the time, so I don't watch them unless I know that they are worth it.

I find that I seek knowledge that I could possibly make use of later, but anything you find interesting can get you started on reading. A book that I keep reading over and over again is the Bible. I have also heard much older people say that they keep finding things they haven't noticed before in spite of having read it dozens of times before.

TheMonarchist··on Go is about to get faster
C++ used to have opt-in checked exceptions ("dynamic exception specification"), that were deprecated in 2011 and removed in 2017. That the once standard feature was removed from C++ speaks a lot.
TheMonarchist··on C++ Frequently Questioned Answers (2009)
> (zero cost abstractions!)

You probably mean zero overhead abstractions. The idea is that you can't outperform it by handwritten equivalent code.

TheMonarchist··on In defense of flat earthers (2020)
> You are much more likely to die on the toilet than you are to die of a gunshot wound.

That's because people spend more time on the toilet than at gunpoint on average.

TheMonarchist··on Things you're doing but don't want to be doing
Somebody has shot the messenger.
TheMonarchist··on Things you're doing but don't want to be doing
> desire paths should be paved

This would reduce wear on grass. When it gets muddy I don't stop using the desire path; I just walk on grass next to it.

> In places where parking is costly, people use public transit.

People still drive car for reasons. Right now you avoid some risk of catching the virus. It is also easier to carry the groceries to your car than all the way home. Moreover people have children and children have hobbies. Also some people hate living in a big city.

> The response was to happily screw the lightbulbs back in whenever needed and never mention it or appear to be even slightly annoyed about it. I’ve considered motion sensors or timers but probably I should just give up?

If there are no persistent heat sources nearby, a body heat detector could work.

> Let’s also assume that you don’t like drinking oral laxatives and having a doctor run a camera up your butt so, like 31% of Americans aged 50-75, you don’t get screenings. What’s the solution?

Swallowing a small remote camera might work. Taking laxatives is the easy part anyway and fasting might also do the job. (I'm no physician.)

TheMonarchist··on Moonlight vs. Streetlights: Exploring the Differences
I rather like the idea that streetlights should be more like moonlight. Also they shouldn't be much brighter than a full moon. The slope of the light cone should be 45 degrees so the lamp won't dazzle me.
TheMonarchist··on Ask HN: Where do you find reliable information on diet?
Many "diet rules" in the Bible have been found to be about avoiding parasites or unhealthy doses of some chemical.
TheMonarchist··on Ask HN: I suck at math, where to start?
> maybe we should start with, "how does anyone math" first.

Dijkstra & friends sought answer to that question.

TheMonarchist··on How do people learn how to do anything related to coding on their own
Things I wanted to do kept me motivated. I guess my inclination to mathematics also helped.

I actually take pride in being mostly self-learned concerning computing. "Only the self-learned is learned. Others are taught." Erno Paasilinna.

TheMonarchist··on Ask HN: Do All Programming Languages Have Features That No One Should Use?
> > The committee seems to gravitate toward first adding the superseding features and removing those rendered obsolete only in the next standard, to provide a clean upgrade path to legacy code.

> Which gives you a constantly moving target, and code that once worked without issue is now in need of major maintenance, and (just like with Python3) the community spends vast amounts of what would otherwise be productive time just keeping application code current.

In practice compilers never remove anything they have had in the past. You may have to re-enable it with a switch though. In the worst case you just stick with the previous standard until code has been updated.

> should've had a more light-weight "agile" development process, allowing what became 14, 17, 20, and 23 to happen without all the pomp and circumstance of the committee process.

To be fair, developing C++ without something like ISO would be impossible. It provides legal protection; so many critical things depend on C++ that the committee would face accusations of collusion without a rigid process and a backing organization.

> C++11 was a mutant monster.

This is true to some extent, but it still was a big improvement on C++03, at least if you wanted to do generic programming and rudimentary metaprogramming.

> > C++ will evolve as long as programming methodology hasn't been perfected. At this point it is immortal and the committee knows it.

> I fear you are correct.

I have for a while suspected that people actually fear it. I wonder why? 20 years ago it may have looked like C++ could kill your favorite language but that's hardly the case today. Now it seems like that it continues to be an expert-friendly language that is used to bridge the gap between human expectations and hardware. I imagine that the future of C++ will look similar to its current symbiosis with Python.

TheMonarchist··on Does any other language than Java has the throws keyword to declare exceptions?
Checked exceptions were deprecated in C++11 and removed in C++17. Now there's just noexcept to declare that no exceptions will propagate to call site.

The feature was always opt-in anyway. The compiler has always just assumed that anything can throw everything, unless informed otherwise.

TheMonarchist··on Python 4.0 will never arrive
Incrementing major version number usually means breaking changes so it's the latter.
TheMonarchist··on It's not what programming languages do, it's what they shepherd you to (2020)
> terminating statements with semicolon

Line wrapping would be unacceptable without this.

TheMonarchist··on It's not what programming languages do, it's what they shepherd you to (2020)
> Just because something runs on servers doesn't mean that it doesn't run on processors that are just enough to run a minimal version of Linux kernel.

Maybe, but it seems unreasonable to hold the world back because of those systems.

> When it comes to bad judgement, C++ gives a lot more rope and especially rope that's C developers are not familiar with.

I think one could just ban most of that rope to junior devs. "Don't try to roll your own classes or templates, for getting them right requires both skill and discipline." Also common guidelines ban rope that isn't needed but for implementing the superior alternatives, that are usually found in the standard library.

You can still program in a procedural way and use just the low hanging fruits of the STL, that was designed for correctness above all, for Alex Stepanov made it to demonstrate his ideas of generic programming: C++ just happened to make implementing it possible.

TheMonarchist··on It's not what programming languages do, it's what they shepherd you to (2020)
> Dependency on huge C++ runtime library and possible ABI problems.

C++ runtime is hardly huge by modern standards, and the usual resolution to ABI issues is to provide C bindings.

> Careless use of C++ -- Lack of judgement --

C doesn't make you immune to any of this. What are buffer overruns if not careless use of C?

Edit: Considering that I suggested moving to C++ for vectors and strings, your bringing up of TMP and polymorphism sounds like a strawman argument.

TheMonarchist··on It's not what programming languages do, it's what they shepherd you to (2020)
> buffer overflows and underflows are literally the No. 1 cause of security problems when working with C

Why don't these ancient projects just move to C++ for vectors and strings, that do the buffer handling correctly for you? Surely they can run a C++ compiler on any workstation these days?

TheMonarchist··on It's not what programming languages do, it's what they shepherd you to (2020)
> I want to be able to say "I want to open a huge file with scatter-gather mechanics and with these 3 functions piped that do mapping and reduction".

IME C++ templates and generic programming help with that aim.

TheMonarchist··on Can someone create this – conditional alarm clock
Sounds like something that could be done as a cron job, at least on Debian-based distros.

Update: It would be a script that checks the condition and then wakes you up.

TheMonarchist··on Ask HN: Which programming language do you plan to learn in 2022?
I recommend C++. It is mature, ubiquitous, immortal and continues to evolve. There will always be demand for good C++ programmers, even if your prediction would fail.
TheMonarchist··on Ask HN: Do All Programming Languages Have Features That No One Should Use?
> language designers have the problem of knowing when to stop

C++ will evolve as long as programming methodology hasn't been perfected. At this point it is immortal and the committee knows it.

> C++11 should have been a minimal cleanup of C++03

C++03 was a very minimal cleanup of C++98 aka ANSI C++. Therefore they were pressed to have much wanted features in the next standard, which was delayed repeatedly to make them ready.

> C++14 onwards could have been a new language, with all the old baggage removed.

The committee seems to gravitate toward first adding the superseding features and removing those rendered obsolete only in the next standard, to provide a clean upgrade path to legacy code. It also leaves time to see which features were really obsoleted.

TheMonarchist··on Ask HN: Facebook has no mechanism to fight defamation
> The other is to go the legal route, which means these fools get hit with a libel lawsuit, which is no joke at all. I witnessed this in a business setting many years ago, all I can say is that the result for the person guilty of defamation can be absolutely brutal, both in financial and social terms. I am not the kind of person who would want to do this to someone else, no matter how stupid they have been in this case.

But this matter isn't just between you and them, is it? I gather from your description that they are trying to deceive an entire community, and for a grand total in millions probably. I think I would pursue the lawsuit to get this sorted out.

TheMonarchist··on Ask HN: Facebook has no mechanism to fight defamation
I think your root cause analysis is incomplete. FB is evil because it must make money to stakeholders. The root cause is that stakeholders want money.

For the love of money is the root of all evil: which while some coveted after, they have erred from the faith, and pierced themselves through with many sorrows. -- 1 Timothy 6:10

TheMonarchist··on Ask HN: What language should beginning programmers learn first?
It depends on how far they want to go. If you want to become a world class expert you should learn C++. Human expectations grow faster than hardware, and C++ is often the only viable choice for bridging that gap.

However if your aims are more modest you may find another language that better matches your needs.

TheMonarchist··on Ask HN: What questions do you ask yourself often/repeatedly?
> Where can I find some guidance? Philosophy, Religion, Science, History?

Isaiah 55:1-3 springs to mind: "Ho, every one that thirsteth, come ye to the waters, and he that hath no money; come ye, buy, and eat; yea, come, buy wine and milk without money and without price. Wherefore do ye spend money for that which is not bread? and your labour for that which satisfieth not? hearken diligently unto me, and eat ye that which is good, and let your soul delight itself in fatness. Incline your ear, and come unto me: hear, and your soul shall live; and I will make an everlasting covenant with you, even the sure mercies of David."

TheMonarchist··on Ask HN: How has long-term work from home changed your sleep habits?
I sleep when I'm sleepy.
TheMonarchist··on MIT Researchers Figured Out How to Make Batteries That Are a Kilometer Long
Storing energy?
TheMonarchist··on DuckDuckGo is working on a privacy-focused desktop browser
Will it be available on Linux?

Why closed beta? Wouldn't it have to be open source if they base it on Chromium? Why don't they just make repository to get contributions from all around the world?

TheMonarchist··on Ask HN: What do you want for Christmas?
Wise answer. I know how you can get a meaningful life, even one that is not wasted.

You should become a man of God. He redeems even the most wretched of men for himself and prepares them for everlasting life with him, but usually also uses them in this life somehow.

The redemption is based on the ancient law thereof. No man is able to redeem his brother from the power of sin and death, as all mankind was sold under sin. Therefore God became our Redeemer when he was born as a man, which is still celebrated every Christmas. Moreover he has already redeemed mankind by laying down his life, which is still commemorated every passover. You just surrender to Jesus, and he takes care of the rest.

However a meaningful life won't be easy, but you might find that the alternatives aren't any better.

TheMonarchist··on Is K&R still a relevant read for a beginner? Is there a 'K&R' for C++?
Recommended C++ books: https://stackoverflow.com/questions/388242/the-definitive-c-...
← PreviousPage 2 of 4Next →