Reddit Programming – Telegram
Reddit Programming
210 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
Native Android Application Development in Swift
https://www.reddit.com/r/programming/comments/1q2wl9i/native_android_application_development_in_swift/

<!-- SC_OFF -->Hi all, imike here. I just released Swift Stream IDE v1.17.0, which adds full native Android application development written entirely in Swift. That means you can now build Android apps without touching XML, Java, or Kotlin. Swift Stream IDE is an open-source VSCode extension that sets up a ready-to-use Swift development environment in Docker, supporting server-side, web, embedded, and now full Android development. With this release, you can create Android applications using familiar templates like Empty Activity, Basic Views (two fragments), or Navigation UI (tab bar), all in Swift. Under the hood, all projects are powered by SwifDroid, a framework I built to wrap the entire native Android app model. It handles the application lifecycle and manifest, activities and fragments, Android, AndroidX, Material, and Flexbox UI widgets, and even automatically wires Gradle dependencies. Supported SDKs are 28 to 35, and with Swift 6.3, it might go down (https://forums.swift.org/t/android-api-minimum-for-the-swift-sdk-for-android/82874) to 24+. Example UI code: ConstraintLayout { VStack { TextView("Hello from Swift!") .width(.matchParent) .height(.wrapContent) .textColor(.green) MaterialButton("Tap Me") .onClick { print("Button tapped!") } } .centerVertical() .leftToParent() .rightToParent() } The first time you create a project, make yourself a cup of tea/coffee. The IDE pulls the Swift toolchain, Android SDK, and NDK, and caches them in Docker volumes. After that, new projects are created instantly. The first build compiles Swift, generates a full Android project (ready to open in Android Studio), and creates a Gradle wrapper. After that, builds take just a few seconds. Once Swift is compiled, you can simply open the Application folder in Android Studio and hit Run or Restart to see your changes. All the necessary files from Swift Stream IDE are already in place, so iteration is fast and seamless. This is the first public release. Android is huge, and there are still widgets in progress, but the system is real and usable today. Documentation: https://docs.swifdroid.com/app/ <!-- SC_ON --> submitted by /u/imike3049 (https://www.reddit.com/user/imike3049)
[link] (https://docs.swifdroid.com/app/) [comments] (https://www.reddit.com/r/programming/comments/1q2wl9i/native_android_application_development_in_swift/)
Building a Monitoring System for Jobs That Never Ran
https://www.reddit.com/r/programming/comments/1q4dsko/building_a_monitoring_system_for_jobs_that_never/

<!-- SC_OFF -->Most monitoring systems tracks success and failure, but the hardest problems come from jobs that never ran at all. The article covers the architecture, the tricky parts such as detecting jobs that never ran, and some lessons learned along the way. <!-- SC_ON --> submitted by /u/Mythikos (https://www.reddit.com/user/Mythikos)
[link] (https://www.vincentlakatos.com/blog/building-a-monitoring-system-that-catches-silent-failures/) [comments] (https://www.reddit.com/r/programming/comments/1q4dsko/building_a_monitoring_system_for_jobs_that_never/)
Simple and efficient visualization of embedded system events: Using VCD viewers and FreeRTOS trace
https://www.reddit.com/r/programming/comments/1q4l6jy/simple_and_efficient_visualization_of_embedded/

<!-- SC_OFF -->Relying on printf or simple breakpoints for real-time embedded debugging is often like flying blind - especially when dealing with complex timing and RTOS scheduling. The RTEdbg toolkit (https://github.com/RTEdbg/RTEdbg) has been extended to solve this, adding VCD-based (https://en.wikipedia.org/wiki/Value_change_dump) event and data visualization, native FreeRTOS trace support, and enhanced trace macros for deeper system insights. Because RTEdbg is open-source, it is accessible for any project, regardless of budget. It supports application and RTOS event visualization (see FreeRTOS trace demo (https://github.com/RTEdbg/FreeRTOS-trace-demo)) and allows for flexible data export and custom visualization—you can see it in action here: Various Data Export and Visualization Possibilities (https://github.com/RTEdbg/RTEdbg/blob/master/Views.md). <!-- SC_ON --> submitted by /u/BrankoP88 (https://www.reddit.com/user/BrankoP88)
[link] (https://github.com/RTEdbg/RTEdbg) [comments] (https://www.reddit.com/r/programming/comments/1q4l6jy/simple_and_efficient_visualization_of_embedded/)
Functors, Applicatives, and Monads: The Scary Words You Already Understand
https://www.reddit.com/r/programming/comments/1q4lzac/functors_applicatives_and_monads_the_scary_words/

<!-- SC_OFF -->Do you generally agree with this? It's a tough topic to teach simply, and there's always tradeoffs between accuracy and simplicity... Open to suggestions for improvement! Thanks :) <!-- SC_ON --> submitted by /u/cekrem (https://www.reddit.com/user/cekrem)
[link] (https://cekrem.github.io/posts/functors-applicatives-monads-elm/) [comments] (https://www.reddit.com/r/programming/comments/1q4lzac/functors_applicatives_and_monads_the_scary_words/)