Better HN
topnewbestaskshowjobs
Log inSign up

codr7

3,876 karma · joined Mar 28, 2019 (7y ago) · 2,562 submissions

codr7@protonmail.com
Submissions

comment 7y ago · link · parent

Experience counts.

Some people seem to have 10x and more motivation to practice and learn than others. Why is it so difficult to agree that this is a major advantage? Because you can't have it delivered on a silver plate at any price?

From my experience; the biggest difference is knowing what corners may be safely cut, which code doesn't even need to be written.

comment 7y ago · link · parent

I like Stepanov, he shows integrity. And I'm ever grateful for his influence on C++.

I'm also fairly experienced, having spent the last 30 years or so writing code. Every kind of code you can think of in any language. Which means I'm fairly used to juggling abstractions.

But I just couldn't crack this one, I lack the motivation needed to work this elevation for extended periods of time. I need some kind of real-world connection now and then to make sure what I'm learning is at all useful.

I got the book when it just came out, and haven't tried since, but I'm pretty sure the problem persists. I have even less patience with academic abstractionitis these days.

I would be very interested to learn how and why people find the information contained in the book useful.

comment 7y ago · link · parent

We're getting the worst of both worlds by blaming mentally ill, poor or otherwise unwanted citizens for any problems caused while doing nothing to improve the situation.

It's the oldest ruling-class distraction in the book, blame the crazy person. But it misses the point, which is figuring out what's pushing people over the edge and building a society that takes better care of everyone.

comment 7y ago · link · parent

More importantly, a simpler language.

It's still perfectly possible to design languages [0] for efficient single pass compilation, but they won't look like C#, Swift or Rust.

https://github.com/codr7/cidk

comment 7y ago · link · parent

I assume you're aiming to make your own compiler/interpreter.

Consider postponing the deep-dive into theory until you've tried solving the problem using what you already know. Once you know your way around a problem, digesting theory becomes much easier.

On one level, there's nothing magical about compilers and interpreters. It's the same old regular code [0] solving the same kinds of problems.

What makes it tricky is working on a meta-level in parallel, visualizing what's happening in two dimensions. Like writing Lisp macros if that makes any sense.

I think it's a shame that so many get stuck on parsing and type theory. The top priority should be to get a feedback loop up and running.

[0] https://github.com/codr7/cidk/blob/master/src/cidk/read.cpp

comment 7y ago · link · parent

Having been there 10 times or so in different contexts, I can confirm: hitting HN's first page is one of the best rides out there as far as attention goes.

comment 7y ago · link · parent

Ability comes from practice, there really are no shortcuts.

Most of the difference seem to be in motivation.

comment 7y ago · link · parent

Without experience, tools don't matter. A skilled developer will most likely write better code regardless of language/framework.

It's a repeating pattern in this society, fools with advanced gear doing what fools do best.

comment 7y ago · link · parent

Which is a longish way of giving the answer no one wants to hear: Experience is everything.

comment 7y ago · link · parent

After writing a number of Forth/Lisp-like interpreters [0] in different languages, I felt like it was time to attempt an extraction of lessons learned into a flexible C++ framework [1] to use as foundation for future projects.

[0] https://github.com/codr7/g-fu

[1] https://github.com/codr7/cidk

comment 7y ago · link · parent

Given that gut flora is connected to everything and involved in many common conditions and more to come, I think that's pretty significant.

It's also further proof that Monsanto is full of shit, always deceiving and lying as much as they can get away with. How much is it going to take before we make them stop?

Or, don't spray poison on food?

comment 7y ago · link · parent

Unconditionally returning on errors all the way has exactly the same effect. Arguing that it's wrong isn't very constructive given that everyone seems to be doing it.

panic() is just another symptom of the same disease.

Exceptions are a very useful tool, and so is pattern matching and support for multiple returns. There is no one true way to handle errors.

comment 7y ago · link · parent

Shouldn't that be "exist in plants, gut bacteria and whatever else we haven't figured out yet"?

comment 7y ago · link · parent

There's a difference between handling and propagating errors, most Go-code I've come across/written is pretty much using exceptions, but with 10x the noise and none of the convenience. Which might be fine, different languages have different goals; maybe simplicity is more important. But pretending it's somehow superior isn't fooling anyone.

comment 7y ago · link · parent

I've been doing pretty much what he describes for three years now, except writing code and sharing it with the world for free [0].

After spending 13 years writing software professionally in everything from major established corporations to consulting and startups.

I don't have that many options for health-reasons, and I'm privileged to live with a partner who pulls most of the economic weight.

But I can't imagine doing it any other way anymore.

[0]

https://github.com/codr7/g-fu/tree/master/v1

https://gitlab.com/sifoo/snigl

https://github.com/codr4life/snabl

comment 7y ago · link · parent

And here we are :)

Ordinary (?) citizens, connecting over the internet to share our distaste for war and hope for a better future.

comment 7y ago · link · parent

I used to release all my code as GPL. But the more time I spent witnessing the madness that is license wars, the less I felt like contributing to the mess.

I spend a lot of time and effort on my code, and I don't mind sharing it for free. I would prefer if other people tuned into that mindset rather than greedily raping the world for profit.

But adding more rules never seem to help, it always causes more division.

My current perspective is that its simply not my responsibility to push others into doing what I believe is the right thing.

Which is why g-fu [0] is released as MIT.

[0] https://github.com/codr7/g-fu/tree/master/v1

comment 7y ago · link · parent

The reason it doesn't make any sense is that its all a bunch of lies and excuses to start a war, its not like the US hasn't been barking up this tree for quite a while now.

And there were no weapons of mass destruction, all lies. It's public information but you'll have to search for it yourself because it will never be reported in the mainstream media, people might start asking the wrong questions.

comment 7y ago · link · parent

Straight from Wikipedia:

"In his book, Body of Secrets, James Bamford, who spent three years in the United States Navy as an intelligence analyst, writes, that the primary purpose of the Maddox "was to act as a seagoing provocateur—to poke its sharp gray bow and the American flag as close to the belly of North Vietnam as possible, in effect shoving its five-inch cannons up the nose of the communist navy. ... The Maddox' mission was made even more provocative by being timed to coincide with commando raids, creating the impression that the Maddox was directing those missions ..." Thus, the North Vietnamese had every reason to believe that Maddox was involved in these actions."

The US was already neck deep in Vietnam, what they needed was an excuse for going all in. So they started poking the bear, which is exactly what they're doing right now with Russia, Iran, China and probably more.

Wars are not started by coincidence, they are very well planned and always come with a hidden agenda.

comment 7y ago · link · parent

More efficient maybe, which isn't really top priority from a user perspective. Personally, I prefer my smoke without a touch of solvents.

Bubble Hash (mixing with ice and filtering frozen resin) is a natural alternative that comes close, but the processing still lowers the quality.

comment 7y ago · link · parent

The best stuff [0] is still obtained by simply rubbing flowers between the hands until enough resin accumulates, it wouldn't surprise me if they had already figured that one out.

[0] https://en.wikipedia.org/wiki/Charas

comment 7y ago · link · parent

The one thing you want to keep in mind whenever doing drugs is that its a ride, it will stop eventually and everything go mostly back to normal.

Fear and panic in combination with an unshackled but inexperienced mind has the potential to create your own personal hell in no time.

That's also a good reason to get introduced to this class of drugs by responsible, experienced users who can help guide you out of any loops you get stuck in.

comment 7y ago · link · parent

Sure, our bodies react differently to different substances.

But it's likewise very common to use Cannabis to take the edge of the unsettling feeling of having your ego deconstructed/reconstructed when going in/coming out of stronger psychedelic trips.

Also worth noting that more Sativa-leaning hybrids are potent psychedelics in themselves at higher doses.

2454.

Show HN: Restarts – The third way of handling errors(github.com ↗)

7 points · by codr7 · 7y ago · discuss

comment 7y ago · link · parent

About weed, did you smoke in a legal or illegal setting? Last thing you need when exploring your mind for the first times is fear of cops storming the room.

The other source of anxiety is that cannabis raises your pulse for a few moments, I would guess because of increased blood flow (which is sometimes visible in the eyes). From my experience that never goes away entirely, but you learn to not freak out since it's not dangerous.

Organic drugs like shrooms are definitely less dramatic than synthetic such as LSD from my experience.

comment 7y ago · link · parent

There's no need to unwind the stack to get what you want.

Restarts [0] evaluate the error handler in the throwing scope/environment and the only way out of there is invoking a predefined restart or aborting the program.

[0] https://github.com/codr7/g-fu/blob/master/v1/doc/typical_res...

comment 7y ago · link · parent

It couldn't be any other way.

The more you really learn, the less ignorant and more nuanced you become.

comment 7y ago · link · parent

All I ever said was that most mental illness is a product of society. Anything beyond that is a product of your imagination. If you're going to actively avoid truth by taking every chance to derail the discussion, why even bother?

comment 7y ago · link · parent

I get that the error is still propagated "manually" behind the scene; but how is this different from exceptions in practice once you use try everywhere (except where you forgot and the error is dropped silently)?

Here is my proposal: add restarts [0] as a complement to manual propagation.

[0] https://github.com/codr7/g-fu/blob/master/v1/doc/typical_res...

1
818283
86