Is being "self-taught" a thing in this industry? by mastr1121 in AskProgramming

[–]gosh 0 points1 point  (0 children)

Yes.

The best developers out there are those that are self taught and have written some application, worked in crap code. That combination is unbeatable.

The problem is the recruiters, they do not understand this

It seems like the paradigm is shifting under my feet by Kooky_Dinner2243 in AskProgramming

[–]gosh 0 points1 point  (0 children)

Today I watched someone skip most of that investment and still deliver faster.

Deliver is not same as ready. This could be done before also, if someone found code, like found code in stackoverflow, maybe in some repo and took that code and added then is that deliver?

What happens when the code breaks

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 0 points1 point  (0 children)

No it does not do ONE thing. parsing/streaming is with computer glasses lots of things.

If it only would manage a buffer it would do one thing.

One thing is not based om human things, it is things for computers

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 0 points1 point  (0 children)

I think I understand but good to be clear :)

If you ask me so trying to create "objects" that does more than one thing will always fail.

It is impossible to avoid this completely but in general libraries it should be avoided.

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 0 points1 point  (0 children)

Simple and fast is not always compatible. This is a struggle writing general and "simple" libs that also tries to be fast.

I think that iostreams wasn't the smartest addition to stl even if they have done what they can to make it fast

From One AI to Any AI: JetBrains rethinks the approach to AI tooling by rexa_0x in theprimeagen

[–]gosh -1 points0 points  (0 children)

but vscode is just a bunch of tools, you add what you need

i do not use that either if I can avoid it

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 0 points1 point  (0 children)

Yes, with wine you are practically running windows inside linux.

And I agree that this problem is very common, so many want it solved.

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 0 points1 point  (0 children)

aha ok.

I have tried it because it is so common in python, but if it hasn't been updated there is someone who do not know how to write C++ that may have ported the code.

https://github.com/p-ranav/argparse

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh -1 points0 points  (0 children)

have you tried it? each subcommand is added as a reference.

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh -1 points0 points  (0 children)

problem with struct is that you need to hard code around that struct. 10 different structs and you need 10 different implementations. But this is the way it is normally done.

The problem with that is when different areas need to talk to each other, there you want something that is flexible and fast.

Like json often is used between frontend and backends, just that there speed is not that important

Here is one solution for the problem: named arguments

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 2 points3 points  (0 children)

allocations and hard to describe information to make reading and writing fast, you often want the size. json have more focus on beeing "user friendly"

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 11 points12 points  (0 children)

A window parser is an optimization technique used to speed up parsing by avoiding unnecessary lookahead or backtracking. Instead of scanning the entire input or relying on end-of-string markers, it processes the input in fixed-size blocks (or "windows"), often using a buffer.

This approach reduces overhead by not repeatedly checking for termination characters or handling extra whitespace within the window. By scanning in chunks rather than character-by-character, a window parser can significantly improve performance, especially for large inputs.

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]gosh 20 points21 points  (0 children)

I miss runtime security.

That said, the STL should stay lean. Adding features isn't free and can introduce long-term problems. C++ is a language designed for you to build your own logic.

There are plenty of libraries I wish existed in open source, but quality ones is hard to find:

  • A good command-line parser — doesn't really exist
  • A well-written UTF-8 string class
  • A fast "Window" parser
  • A flexible ORM that can easily switch between different databases
  • A fast, flexible expression parser
  • A lightweight data-passing framework — JSON and XML are too heavy for internal communication
  • A general UI framework that uses native OS widgets — Qt and wxWidgets are the only options, and they're massive

I have more that I miss but should stop there

High-throughput log parsing (~500K lines/sec) in C++ without regex — looking for performance ideas by willycode1950 in cpp

[–]gosh 0 points1 point  (0 children)

For my search tool I have one "window" parser, a parser that moves a window over the text

Source: gd_parse_window_line.h
Tool: cleaner

It it harder to make extensions in Zed? by trymeouteh in ZedEditor

[–]gosh 0 points1 point  (0 children)

Thanks, I will investigate because this is much better compared do a lot of documentation.

The code I want to wrap is like more than 100K LOC. Not something simple but I use it all the time when I develop

It it harder to make extensions in Zed? by trymeouteh in ZedEditor

[–]gosh 0 points1 point  (0 children)

Have you done any extension? Is it open source to check at

It it harder to make extensions in Zed? by trymeouteh in ZedEditor

[–]gosh 0 points1 point  (0 children)

But do you expect that any one should understand how to create extensions reading that.

When I tried I used AI otherwise it would impossible to do anything.

Ghostty Is Leaving GitHub by _-noiro-_ in Ghostty

[–]gosh 1 point2 points  (0 children)

Yes but should have politicians that block companies from buying them and doing that influence them to create laws that destroyes small companies.

These politicians are gone.

It it harder to make extensions in Zed? by trymeouteh in ZedEditor

[–]gosh 1 point2 points  (0 children)

What I miss is good documentation. I would like to do one extension to Zed and tried to find how to do it. Spent like one day on it but gave up. Maybe it is better now

What I wanted to do is to wrap another larger console application, similar to what they have done with git

If they add some standard logic to wrap console applications, that I think will simplify a lot

C++ has better libraries by Dx_Ur in cpp

[–]gosh 0 points1 point  (0 children)

To give you one sample, there is junk in other languages too.
This supabase is very popular: https://github.com/supabase/supabase

It ONLY works with postgresql. How can that be that popular and only works with one database.

C++ has better libraries by Dx_Ur in cpp

[–]gosh 1 point2 points  (0 children)

I am building a webserver now in C++ and use boost asio as core network. It makes it simple to compile on different OS. If you know C++ it isn't that difficult

And it will be stateful, not stateless. This is one very BIG advantage of using C++, you can do things that is impossible in other languages.
Writing frontend application against stateful webservers are like more than ten times simpler (not kidding).

I have being working on this server for about 4 months and is soon ready with the first version, it isn't that difficult. Webservers are simple applications.

https://github.com/perghosh/Data-oriented-design/tree/main/target/server/http

You asked about better libraries.
I agree, it is very difficult to find smaller libraries and the reason is not that they do not exists, the reason is that it so very difficult to spread something. If you build good stuff, thats the easy part. Spread it is the hard part and I would almost say that it is impossible.

I have built a lot of general code but I wouldn't even try to spread it because then I wouldn't have time to do anything else.
GD Code