August 13, 2021

On Friday, 13 August 2021 at 14:08:29 UTC, ruki wrote:

>

xmake can build a mixed c/dlang project, and supports built-in package dependency management. It also supports downloading integrated dlang modules from dub. For example add_requires("dub::zlib")

Xmake is looking more and more interesting >:D

>

imperative scripts, which generate dependency information as a side effect

This was kind of what my hackish experiment was going for. You'd define things in LUA that manually called "isOutOfDate(file, {metadata})" and "update(file, {metadata})", and then the SDL half was just a list of function calls (quite literally since the SDL was translated into LUA).

Another pretty OT question, but does anyone else have this ridiculous urge to make their own versions of everything?

Like, instead of being sensible and using an already existing thing, you instead want to make a crappier, buggier, unfinished version simply because its "mine".

August 13, 2021

On Friday, 13 August 2021 at 19:30:29 UTC, SealabJaster wrote:

>

This was kind of what my hackish experiment was going for. You'd define things in LUA that manually called "isOutOfDate(file, {metadata})" and "update(file, {metadata})", and then the SDL half was just a list of function calls (quite literally since the SDL was translated into LUA).

Premake uses Lua:

https://premake.github.io/

Manu got D support into it quite a while back. Not sure where it stands now.

August 14, 2021
On Friday, 13 August 2021 at 19:30:29 UTC, SealabJaster wrote:
>
> Another pretty OT question, but does anyone else have this ridiculous urge to make their own versions of everything?
>
> Like, instead of being sensible and using an already existing thing, you instead want to make a crappier, buggier, unfinished version simply because its "mine".

I do, a lot of people have that issue as well. This isn't really an issue until it is controlled, but when it's not the end result is almost empty GH page and a broken career.

Every time I need to start a project I have this:

  "meh, these libraries sucks, the author was stupid",

and it is easy to let it loose like:

  "ugh, the tooling is bloat and buggy, I'll make my own IDE quickly",

and then in some rare cases it evolves:

  "this OS is junk, if I am to move forward I will need my own OS".

So what is the deal with it?
  Well, when you rejected all libraries for the task (especially for reasons like style) it is time to stop, take a deep breath and swallow (your ego), remember - you have things to do, and if it is a paid job they pays you for that specific things and not for reinventing the wheel.
  Additionally you will have deadlines, and you had to support that thing afterwards for undetermined time. Would you really like supporting all your inventions for a lifetime? Probably not.
  And then if you just started to make that replacement for a specific library when you started to plan things and implementing it you will definitely hit some issues related to subject that simply wasn't there when you were planning, and this is where you probably start to understand why authors of those "stupid" libraries did "stupid" things.
  At this point it is time to stop doing crap, turn down your pride, thank the authors for saved time, and start using the said libraries.
  Enjoy your life with much less stress and depression!

Now, instead of "libraries" you could as well put "software" and it will be the same, you can even put "hardware" and it still will be the same.
And that is how it works!

Just remember - when you see "junk" or "bloat" it well could be the author's poor skills or incompetency (everyone hate amateurs, eh?), or it could be a real problem that was solved using what was really objectively possible at that moment because no one else did that before (or at least doesn't bothered to share, can't blame them though). And the latter is much more possible, unless of course it's just 300 lines of code prototype made at Friday's evening.
August 15, 2021

On Saturday, 14 August 2021 at 06:27:54 UTC, evilrat wrote:

>

I do, a lot of people have that issue as well. This isn't really an issue until it is controlled, but when it's not the end result is almost empty GH page and a broken career.

Might I add that there is a middle-road way to deal with this. One obviously should not develop everything from ground up, but I think it's okay to apply small personal patches to editors, version control or compilers, for example.

Also for simple stuff, like build scripts or syntax colouring schemes, it's totally reasonable to write your own if that works better.

Of course, you should always mind compatibility with others when doing this. If you tweak your DMD for example, I think it's reasonable to make tweaks to it's error reporting format, but not to the language semantics - otherwise you are not writing D anymore. The latter can be done if you're not expecting anybody else to work with your code.

>

Every time I need to start a project I have this:

"meh, these libraries sucks, the author was stupid",

Guess where I though kind-of like that? When reading the API of C standard library!

https://cplusplus.com/reference/cstdlib/atof/

>

If no valid conversion could be performed, the function
returns zero (0.0).

WAT?!!

>

If str does not point to a valid C-string, or if the
converted value would be out of the range of values
representable by a double, it causes undefined behavior.

WAT WAT WAT WAT WAT WAT..??!!

Seriously though, I should not be this judgemental. This is all hindsight - perhaps there was no NaN to represent non-number back when atof was designed or something.

August 16, 2021
On Saturday, 14 August 2021 at 06:27:54 UTC, evilrat wrote:
> ...

Honestly it gets even worse when there's also the allure of 5 minutes of people's attention for going "Hey, guys, I just made an awful build tool, give me praise!" that I'm ever so often to fall for.

Like literally, every post I've made in this thread I have to hold myself back from posting a link to the code, because there's always that slight satisfaction of others looking at your work, even when there's no need for it.

August 20, 2021
On Monday, 16 August 2021 at 01:14:22 UTC, SealabJaster wrote:
> ...

idk if anyone else _also_ has this problem, but does anyone else feel like they're a literal addict to coding, in a bad way?

It's been really bad for me the last few weeks, where instead of studying, exercising, or doing anything that isn't coding, I'll just spend days tapping away at completely useless projects that don't see the light of day just to get my "fix" of problem solving/whatever it is my brain wants.

And then you hit a wall where there's nothing you're working on that satisfies your brain's hunger. You're not working on anything hard, or useful, or meaningful, and so the feelings just fester and bring your down that you can't satisfy your urges to make things.

It does sound ridiculous, but it's an honest issue I'm facing, and was just wondering if anyone else experiences this.
August 21, 2021
On Friday, 20 August 2021 at 16:43:10 UTC, SealabJaster wrote:
> On Monday, 16 August 2021 at 01:14:22 UTC, SealabJaster wrote:
>> ...
>
> idk if anyone else _also_ has this problem, but does anyone else feel like they're a literal addict to coding, in a bad way?
>
> It's been really bad for me the last few weeks, where instead of studying, exercising, or doing anything that isn't coding, I'll just spend days tapping away at completely useless projects that don't see the light of day just to get my "fix" of problem solving/whatever it is my brain wants.
>
> And then you hit a wall where there's nothing you're working on that satisfies your brain's hunger. You're not working on anything hard, or useful, or meaningful, and so the feelings just fester and bring your down that you can't satisfy your urges to make things.
>
> It does sound ridiculous, but it's an honest issue I'm facing, and was just wondering if anyone else experiences this.

I understand this, and from my own experience I've found that I like to distract myself with tasks like this when I'm trying to avoid thinking about or dealing with some unpleasantness in my life, which maybe I'm not even fully conscious of. The concentration of thinking takes away the danger of having to contemplate the unpleasant thing that we don't want to face or think about.
August 22, 2021
On Saturday, 21 August 2021 at 09:02:58 UTC, Abdulhaq wrote:
> ...

This is probably it to be honest.


August 23, 2021
On Sunday, 22 August 2021 at 15:07:24 UTC, SealabJaster wrote:
> On Saturday, 21 August 2021 at 09:02:58 UTC, Abdulhaq wrote:
>> ...
>
> This is probably it to be honest.

We hackers are really fortunate that our distraction activity is so wholesome, we don't turn to booze or whatever other vastly more destructive escapes!
August 24, 2021
On Monday, 23 August 2021 at 08:01:27 UTC, Abdulhaq wrote:
> ...

If only something actually useful ever came out of it though.

I keep escalating the complexity of the things I want to do:

"I'll write a build tool!"

->

"I'll write a package manager!"

->

"I'll write an assembler!"

"Then a JIT, or an OS, then, then, then....."

And nothing I actually write will be used or useful in any meaningful way.

Though tbf even when I try to write something useful it still goes unused anyway.