2076
149
submitted 2 years ago* (last edited 2 years ago) by otter@lemmy.ca to c/programming@programming.dev
2077
18

Sorry, the question in title sounds naive. I have no doubt that math is essential in programming, but I am thinking about philosophy of programming and want to summarize when they're needed in programming. My attempt is below:

Most applications of programming are making electronics do things through their interfaces. Whether that's telling a screen to display something, a network wire to transport data, a hard disk to persist data.

But we often need math because we often transform data, or we might make said electronics do things based on user input, or an event. Transforming an event to data is a mathematical construction.

Some applications are almost purely mathematical, like banking, crypto currency, or encryption.

In your opinion, does this fully explain why we need math in programming? Is there a better way to sum it up?

2078
100
Praise my GitHub profile (praise-me.fly.dev)
submitted 2 years ago* (last edited 2 years ago) by Ategon@programming.dev to c/programming@programming.dev

There was a roast my github profile site going around recently so as a counter to that someone made a praise my github profile. Enter your profile and get an AI complimenting you

2079
203

To accelerate the transition to memory safe programming languages, the US Defense Advanced Research Projects Agency (DARPA) is driving the development of TRACTOR, a programmatic code conversion vehicle.

The term stands for TRanslating All C TO Rust. It's a DARPA project that aims to develop machine-learning tools that can automate the conversion of legacy C code into Rust.

The reason to do so is memory safety. Memory safety bugs, such buffer overflows, account for the majority of major vulnerabilities in large codebases. And DARPA's hope is that AI models can help with the programming language translation, in order to make software more secure.

"You can go to any of the LLM websites, start chatting with one of the AI chatbots, and all you need to say is 'here's some C code, please translate it to safe idiomatic Rust code,' cut, paste, and something comes out, and it's often very good, but not always," said Dan Wallach, DARPA program manager for TRACTOR, in a statement.

2080
329

researchers conducted experimental surveys with more than 1,000 adults in the U.S. to evaluate the relationship between AI disclosure and consumer behavior

The findings consistently showed products described as using artificial intelligence were less popular

“When AI is mentioned, it tends to lower emotional trust, which in turn decreases purchase intentions,”

2081
60
2082
83
2083
21
2084
26
2085
41
2086
23
submitted 2 years ago* (last edited 2 years ago) by serra@slrpnk.net to c/programming@programming.dev

I just found about the rather experimental chaarts. It enhances the standard html and turns it into different charts. Complete with hover text and animations.

It seems to be pretty accessible. And if the user agent doesn't support the fancy css it degrades gracefully to the original

2087
8
2088
-4
2089
14

Youtube link: https://www.youtube.com/watch?v=xx7Lfh5SKUQ

A fairly in-depth and "dense" C3 talk about the AGC that covers the architecture and instruction set, the hardware implementation, peripherals, and the system & mission software.

Really interesting stuff if you're into retrocomputing and/or computers that got people to the fucking Moon, and if you're not the sort of person who turns into an unskippable cutscene when the AGC is mentioned, you'll probably learn a lot. If you're like me and you are that sort of person, you'll probably enjoy the talk anyhow.

(book tips: The Apollo Guidance Computer: Architecture and Operation by Frank O'Brien for AGC details, and Digital Apollo by David Mindell for a general overview of the automation in Apollo)

2090
49
2091
35
JSON Patch (jsonpatch.com)
2092
386
GitLab is reportedly up for sale (www.developer-tech.com)
2093
112
2094
126
submitted 2 years ago* (last edited 2 years ago) by ruffsl@programming.dev to c/programming@programming.dev
2095
35
Why Pseudocode? (stellar.mit.edu)
2096
27
Beating the compiler (www.mattkeeter.com)
2097
1

Alright, let’s dive into the world of PHP content management systems and eCommerce platforms. WordPress, Joomla, OpenCart, and Magento all bring something to the table, but WordPress is the heavyweight champ when it comes to popularity. Now, I’m not exactly a WordPress fan myself, but I can’t ignore the fact that its biggest selling point is how it lets folks who don’t know a lick of programming still make a splash in web development. WordPress started out as a simple blogging tool, but it's become a juggernaut of a CMS. The thing that really sets it apart is how easy it is to use. It’s got this super user-friendly interface and a massive library of plugins and themes. This means you can build a site without having to mess around with much code. It’s like an entry-level ticket to web development—you don’t need to be a coding guru to get things up and running. Joomla, though, is no slouch and definitely deserves a shout-out as a serious competitor. It’s got a lot of power and flexibility, making it a solid choice for more complex sites. Joomla’s admin panel can be a bit of a brain teaser compared to WordPress, but that complexity also means it’s got more advanced features. It’s perfect for sites that need a bit more structure and functionality, like social networks or community sites. If you’re someone who’s comfortable with a steeper learning curve, Joomla’s got the goods to handle bigger, more intricate projects. OpenCart is geared specifically towards eCommerce and is pretty straightforward when it comes to setting up an online store. It’s a good option if you’re focused on selling stuff online without getting into too many technical weeds. On the flip side, Magento is the big dog of the eCommerce world, built for large-scale operations. It’s incredibly flexible but requires a solid understanding of its setup and customization. So, to wrap it up: WordPress is all about ease of use and accessibility, making it a go-to for those without much programming know-how. It’s the gateway drug for people who want to get into web development without diving deep into code. Joomla, meanwhile, stands tall as a real competitor with its robust features and flexibility for more complex sites. Each platform has its own strengths, but WordPress’s appeal lies in its ability to get newbies into the game with minimal fuss. I haven't forgotten about Drupal and other options, but this is just a quick and simple rundown. Personally, I like to choose between them based on the project's needs, and for me, Joomla is the top pick. What’s your take?

2098
46
20 new CSS viewport units (web.archive.org)
submitted 2 years ago* (last edited 2 years ago) by danhab99@programming.dev to c/programming@programming.dev
2099
68
submitted 2 years ago* (last edited 2 years ago) by LainTrain@lemmy.dbzer0.com to c/programming@programming.dev

I've found lots of examples in C of programs illustrating buffer Overflows, including those of pointer rewrites which has been of great help in understanding how a buffer overflow works and memory safety etc. but I've yet to be able to find an example illustrating how such a buffer overflow can rewrite a pointer in such a way that it actually results in code execution?

Is this just not a thing, or is my google-fu rust y? Tried ChatGPT and my local Mistral and they both seem unable to spit out precisely what I'm asking, so maybe I'm wording this question wrong.

If anyone in here knows, could point me in the right direction? Thanks y'all btw love this community 🧡

2100
50
view more: ‹ prev next ›

Programming

28322 readers
685 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS