aksharvarma, to programming
@aksharvarma@mathstodon.xyz avatar

Evolution of how I think of while :

  1. When I first learned "loops":

while (condition is true) {do these things, adjust things so a slightly new condition is checked}

// That's where I first saw infinite loop and how there are intentional infinite loops.

  1. A small step to move condition update out of the loop body:

for (i=0; i< N; i++) {do these things}

// After the couple of days it took to get used to them, I found them neater and closer to how I think of things.

  1. Most of the time, the i from before is indexing into something, so let's directly deal with the item being indexed:

for item in collection:
do stuff

After the few days to rewire syntax muscle memory, going back would decidedly feel like a step back.

I don't want to give up automatic (and transparent) out-of-bound checks.

  1. There are actually only about 3/4 things one does inside a loop:

map/fold/scan/filter function-to-call collection-to-traverse-through

;; Getting rid of explicit indexing was just step one.
-- After a few days/months/years, I now realize that it is more important and less buggy if I think only of the function to call (and whether I want to end up with a new (maybe pruned) collection, a single thing, or "both" (that's how I think of scans))


Alternatively, my evolution as I learned new languages idioms:
-->
or -->
-->
or --> ???

publicvoit, to programming
@publicvoit@graz.social avatar

What happens, when you join two paths in a language when the second one is an absolute one?

join("foo", "/bar")
returns "foo/bar" or "/bar"?

The wonderful @meisterluk wrote a great article about that you might want to read: https://lukas-prokop.at/articles/2024-05-03-filepath-join-behavior

I can not tell what version I'd actually prefer. There are situations where both versions would be "proper".

#C++

cpponline, to cpp
@cpponline@mastodon.social avatar

What’s New in Compiler Explorer? 2024 Update – by @mattgodbolt – C++Online 2024

https://www.youtube.com/watch?v=28Gp3TTQYp0

morenonatural, to github Spanish
@morenonatural@todon.nl avatar

[2208.04259] First Come First Served: The Impact of File Position on
https://arxiv.org/abs/2208.04259

morenonatural,
@morenonatural@todon.nl avatar

@Codeberg haven't finished reading, but reading .hpp files after .cpp files is really cumbersome. This a classic in yet I've never heard complains about it

fell, (edited ) to DigitalNomadHub
@fell@ma.fellr.net avatar

I just heard the bad news that I am probably going to need a new job starting in July.

So, before beginning the regular search, I wanted to ask my Fedi friends if anyone could use a capable C++ programmer with lots of graphics and networking experience. I wouldn't mind a change, so I'm open to anything. Even other programming languages! It would be awesome if I could use Linux to do the work. 🐧

Locations I would consider are: Central Europe, Melbourne, Sydney or Remote

🔁 Boost appreciated! 🙏

#Job #Jobs #Work #Hiring #FediHire #FediHired #GetFediHired #LookingForWork #Germany #Düsseldorf #Sydney #Melbourne #Programming #CPP #CPlusPlus #OpenGL #GameDev
#OpenToWork

glitchypixel, to CSharp Spanish
@glitchypixel@mastodon.gamedev.place avatar

Hm is it me or there is some sort of obsession to constantly update a programming language to fill it with "stuff" and "features"

I'm noticing a clear trend for this in #csharp and #cpp, but I'm sure there are others

I mean people keep asking why C is still widely used. I'm pretty sure that one of the reasons is that the spec has barely changed in 50 years or so and it works

C'mon some programming languages are fine as they are, please don't keep crowding them unless absolutely necessary pls?

Schlangenmensch, to cpp German
@Schlangenmensch@mastodon.social avatar

Does anybody know when it will be possible to mix #c++ named and classic with ?

molecularmusing, to cpp
@molecularmusing@mastodon.gamedev.place avatar

Live++ 2.5.0 OUT NOW for Windows, Xbox Series X|S, and PlayStation®5!
https://liveplusplus.tech/

This is the only solution that supports simultaneous hot-reload for C++ applications across multiple platforms and processes, both locally and over the network.
https://www.youtube.com/watch?v=ewbkdxskl7I

ctietze, to random
@ctietze@mastodon.social avatar

2 years ago, I wouldn't have expected me to say this:

From C++ people who deal with pointers and have to protect themselves from their ab-use, I've learned useful techniques to wrap C libraries in Swift.

kdab, to cpp
@kdab@techhub.social avatar

With regular uploads on various programming topics, there's always something new to learn on our YouTube channel KDAB TV. Subscribe now and elevate your programming skills with us: https://www.youtube.com/@KDABtv

kubikpixel, to webdev Estonian
@kubikpixel@chaos.social avatar

SpiderMonkey is a JavaScript/WebAssembly Engine

@SpiderMonkey is @mozilla JavaScript and WebAssembly Engine, used in @FirefoxDevTools, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be compiled to WASI.

🐒 https://spidermonkey.dev


simontoth, to cpp
@simontoth@hachyderm.io avatar

When working with exceptions in C++, there are three main levels of guarantees a function can provide when an exception is thrown.

🧵👇

Compiler Explorer link: https://compiler-explorer.com/z/T9YKKa5oW

slint, to rust
@slint@fosstodon.org avatar

Yay! 🎂🥳 Its been a year since we released 1.0! 🎉🎇 In the past year, we grew at an amazing pace: crossed 14.7K 🌟 with 116 contributors and 920 projects using Slint. Thank you for your love and support.
https://github.com/slint-ui/slint

mo8it, to rust
@mo8it@fosstodon.org avatar

Finally, the video with the powerful quote by Google is uploaded!

"Rust teams at Google are as productive as ones using Go, and more than twice as productive as teams using C++" 🤯

https://youtu.be/QrrH2lcl9ew

Rust isn't just about memory safety, Rust isn't just about performance, Rust is also about productivity, reliability and correctness!

I found the video to send to people when I want to convince them of Rust 🦀

gregorni, to programming
@gregorni@fosstodon.org avatar

What does your development environment look like right now?

(IDE/Text Editor? Terminal Multiplexer? Package Manager? Shell? Programming Language? Containerization? Command Runner? Terminal Emulator?)

jeremy_list,
@jeremy_list@hachyderm.io avatar

@gregorni
Editor: or Pe
Multiplexer: still figuring out: only recently realised they're useful.
Package manager: / pkgman
Shell: bash (sometimes zsh, never got around to finding out the difference)
Language: , , , , whatever else tickles my fancy.
Containers: none (most recently docker)
Command runner: don't you mean shell?
Terminal emulator: the default ones from and

foonathan, to cpp
@foonathan@fosstodon.org avatar

I've written a trip report for the C++ standardization meeting in Tokyo: https://www.think-cell.com/en/career/devblog/trip-report-spring-iso-cpp-meeting-in-tokyo-japan

daridrea, to cpp
@daridrea@graphics.social avatar

The Real C++ Killers (Not You, Rust) by Oleksandr Kaleniuk https://wordsandbuttons.online/the_real_cpp_killers.html

SonnyBonds, to cpp
@SonnyBonds@mastodon.gamedev.place avatar

Any dyld/linkage experts out there that can make a wild guess as to why one plugin (ours) in loaded in a host process would call straight into another (someone else's)? On macOS.

I think our plugin is calling std::generic_category() but ends up in another module instead of libc++. (Can't reproduce it locally so my context is limited.)

Address in target module is always the same relative its base, which makes me think it's somewhat deliberate and not a jump to garbage address.

vruz, to programming
@vruz@mastodon.social avatar

Greenest programming languages according to this paper.

"Energy Efficiency across Programming Languages: How does Energy, Time and Memory Relate?"

Website:
https://sites.google.com/view/energy-efficiency-languages

[PDF]
https://greenlab.di.uminho.pt/wp-content/uploads/2017/10/sleFinal.pdf

Energy Efficiency across Programming Languages How Do Energy, Time, and Memory Relate? Rui Pereira HASLab/INESC TEC Universidade do Minho, Portugal ruipereira@di.uminho.pt Marco Couto HASLab/INESC TEC Universidade do Minho, Portugal marco.l.couto@inesctec.pt Francisco Ribeiro, Rui Rua HASLab/INESC TEC Universidade do Minho, Portugal fribeiro@di.uminho.pt rrua@di.uminho.pt Jácome Cunha NOVA LINCS, DI, FCT Univ. Nova de Lisboa, Portugal jacome@fct.unl.pt João Paulo Fernandes Release/LISP, CISUC Universidade de Coimbra, Portugal jpf@dei.uc.pt João Saraiva HASLab/INESC TEC Universidade do Minho, Portugal saraiva@di.uminho.pt
Abstract This paper presents a study of the runtime, memory usage and energy consumption of twenty seven well-known soft- ware languages. We monitor the performance of such lan- guages using ten different programming problems, expressed in each of the languages. Our results show interesting find- ings, such as, slower/faster languages consuming less/more energy, and how memory usage influences energy consump- tion. We show how to use our results to provide software engineers support to decide which language to use when energy efficiency is a concern.
image/png

CoBC, to cpp French

Si vous connaissez quelqu'un qui connaît quelqu'un qui a son oncle qui connaît quelqu'un dont le voisin recherche quelqu'un pour un poste de développeur soit web soit c++ (+ Qt éventuellement) je suis preneur. Boosts appréciés
#C++ #C

meetingcpp, to cpp German
@meetingcpp@mastodon.online avatar

Book of the Day: Secure Coding in C and C++ by Robert C. Seacord
https://meetingcpp.com/mcpp/books/book.php?hash=46e52215a197434cc983fa63521e1749bb7c1509

meetingcpp, to cpp German
@meetingcpp@mastodon.online avatar

Per-Magnus Holtmo: Using gRPC to fight Mordor
https://www.youtube.com/watch?v=lesTvLzTrmg

kdab, to rust
@kdab@techhub.social avatar

On top of the recently added #Rust and #Cpp libraries, you can now also find the Slint source code on codebrowser.dev - the online code browser allowing you to browse #code just like in your IDE. Try it out and let us know what you think about this addition: https://codebrowser.dev/slint/slint/ #RustLang @slint

AminiAllight, to cpp
@AminiAllight@mastodon.gamedev.place avatar

I've released a clang tidy for C/C++ that finds division by non-constant values to help you search for possible division-by-zero in your codebase!
This is mostly a tool I built for myself to help with LMOD development but others might find it useful too
https://github.com/amini-allight/clang-tidy-division-by-non-constant

molecularmusing, to gamedev
@molecularmusing@mastodon.gamedev.place avatar

Live++ 2.4.1 out now:
Optimized loading times and performance, task bar progress, a few XSX-specific improvements, and the first beta version for PS5.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • tester
  • kavyap
  • PowerRangers
  • hgfsjryuu7
  • magazineikmin
  • thenastyranch
  • rosin
  • mdbf
  • Youngstown
  • slotface
  • InstantRegret
  • khanakhh
  • GTA5RPClips
  • DreamBathrooms
  • anitta
  • vwfavf
  • normalnudes
  • ngwrru68w68
  • everett
  • ethstaker
  • osvaldo12
  • cisconetworking
  • Durango
  • Leos
  • tacticalgear
  • cubers
  • modclub
  • provamag3
  • All magazines