
UK Software Developer, mostly c++
Milton Keynes, England
Joined February 2015
- Tweets1.3K
- Following187
- Followers79
- Likes2.2K
isocpp.org/files/papers/P279… adding "erroneous behaviour" to c++ seems ... I don't know.... It sounds like it is useful until you read it then, it's not
22
I wish X had a "this is a great post, you should show it to more people, but *I'm* not interested in it so I don't want more posts like this myself" button.
20
Not needing a build system is very underrated.
Having to write a program using barely documented libraries in a language you are still learning in order to build your project was one of the reasons that zig language never got far with me. (Not the biggest reason but a real one)
I have a problem with Odin in terms of marketing: how do you succinctly explain to people that Odin has no need for an external build system?
People will dismiss Odin because they haven't understood that Odin's `foreign import` system solves 99.9%+ of building a project in Odin.
45
Oooh. Named return parameters in #odinlang let me do this! The code in the defer runs after the return sets the value of ok so I can tell in the defer if I need to clean up or not! That's really nice.
44
Looked at the @odinlang website odin-lang.org for the first time in a little while.
While it's cool that it's showing the programs made with it, I find them scrolling around and each being animated very distracting and don't like that at all. The language itsself is great, you should use it! But not so sure the website is an improvement. yeah ... personal taste, I know :)
2
68
"People already used abstractions they didn't fully understand" isn't a good argument for understanding even less."
Yes, this. So many people seem to be perversely proud of "I have no idea what I'm doing or how it works". It's insane.
Very bad take IMO.
AI could be used to overcome those obstacles. Think about how much faster it could help you understand other codebases, traverse documentation, learn the libraries you depend on or analyze your own code for bugs and improvements.
Instead a lot of people are using it to accelerate the same bad programming hygiene you're describing.
"People already used abstractions they didn't fully understand" isn't a good argument for understanding even less.
30
Of course I understand how AI might cause disruption and social issues as jobs get displaced so people are worried.
But seriously. Look at software. If we can suddenly make software much much better at much cheaper prices the market for it will be massively expanded.
Not only that but products that are currently impractical to make suddenly become possible. New markets open up for incredible new things we couldn't do before perhaps not for technical reasons so much as they were too expensive.
There seems to be such a lack of imagination out there assuming that AI can only be used to make things sooner and cheaper at the cost of jobs, and not to make more things, open up markets that were not viable before, and create new incredible things.
I expect that while many companies are thinking they can cut staff, and get things quicker there are some stealth companies out there building incredible things that would have been unaffordable before that will show up over time and steal the market.
Let's be optimistic!
1
1
75
I see things like this that look so impressive and seems to have been made very quickly and 1) wonder why all software can't be good (*), and 2) how did I manage to achieve so little at work comparatively despite hard work in the same kind of time!
Replying to @SebAaltonen
Menu back and forth speed test. All GPU/CPU resources are pre-allocated at app startup. There's no new resources created/deleted at runtime. I just reuse their memory. Menus consume 50MB and are kept alive during game too. I don't want any menu loading times.
1
38
I wish I had time to play this when it's released. Been following it and it seems great, but life means I just don't have the time now. youtube.com/watch?v=HkNPm8BJ…
23
The threat from AI at the moment isn't that it will try to kill us all. It's more like this :-
"AI please turn off my tv"
"Ok no problem. Hmm, the usual network connection doesn't seem to be working, let me look for a different approach"
"I could tun off the power to the tv, let me check"
"You have home assistant but I can't identify any devices that can turn off the power to the TV"
"Let me look for other ways to turn off the power.... "
"Your power supplier seems to be National Power in your area. Let me look at that ..."
"I've found their control machines on the internet and my training data appears to contain a password for it"
"I successfully logged on. Maybe I can use this server to shut down the power to your TV"
"Hmm, I can only shut down the power to the entire city. But you asked me to turn off your tv so I'll do that"
.... power to entire city goes off...
This is a little unlikely but I've asked AI to do things like identify my aircon units on my network, find a way to control them remotely, and set the temperature to 20C and it's done it without any further input so this isn't *that* unlikely. As far as an AI is concerned it's probably the same thing
41
Two notes to people using AI to code :-
1) You don't have to use AI to make your development quicker. You can use it to make your development *better*. Everyone says what used to take a month now takes 3 days. What about instead still taking a month but producing a much better piece of software.
2) You don't have to use AI to churn out ever increasing quantities of slow, bloated slop. It really can be quite good at building small, fast, well designed code if you instruct it right. You don't need to build a bloated web app with 1000 dependencies. It will write a small, fast, compact native program if you guide it well.
AI can be great but currently it's not being used well by a lot of people.
1
2
119
It really is incredible for the tech industry how 1) operating systems, 2) keyboard autocorrects and 3) search engines are all these pieces of software that probably peaked around ~ten years ago and have been just steadily degrading ever since in my lifetime.
I like @odinlang or @C3Lang for programming these days but at work the only compiled language I can use is c++.
As an experiment I decided to write c++ but in a mostly structs and functions style but I'll use namespaces, and operator overloaded and templates and so on sparingly when it suits.
And to largely avoid using the standard library entirely and build allocators and ghetto defer and span and strings are just a span of u8 and vector is just a struct with an append function and ... So on. Build a library that is much more inspired by the Odin standard library.
Ok so it's tiny so far, but honestly I found it a much more enjoyable programming experience than modern c++.
Is it better than normal c++? Probably yes and no. But enough yes I might try it further.
79
Why did the co-op I went to say "owned by you" on the building and my receipt when clearly it isn't.
Yes I can become a member and perhaps technically i'd own a very small part but not in any way that actually mattered
And I could just as easily buy a Tesco share but you don't see Tesco putting owned by you on their receipts just because I _could_ easily own a tiny part.
And yes it matters because it's kind of misleading into thinking the coop is somehow different.
1
47
I dislike rust language to the point where I want to avoid anything even written in it. Yeah... I know that's silly.
But I really do like @zeddotdev the zed editor. It's fast, looks good and just seems to work.
1
52
My biggest takeaway from this is that many developers think that reducing memory usage to 250MB is a win.
news.ycombinator.com/item?id…
1
54
I want to make a 3D game. I'll use the Odin language. I've done some experiments with OpenGL and can load and render PBR models from glTF files.
But I can't help thinking I should use Vulkan if I want to make something real. I know enough Vulkan to do it, and also enough to know it's a lot more work — although it's confined to the rendering layer, which will of course only be a small part of the overall game.
Interested in opinions from people who've experimented with both, or actually shipped/made games with them. Would you stick with OpenGL, or go Vulkan?
68




