|
FlapYoJacks posted:F-strings should be used everywhere possible. sure would be nice if they worked for binary strings. loving python
|
# ¿ Jan 14, 2024 05:03 |
|
|
# ¿ May 9, 2024 07:11 |
|
FlapYoJacks posted:And floats for some reason. don't they? Python code:
|
# ¿ Jan 14, 2024 05:14 |
|
FlapYoJacks posted:Sorry, I meant precision: Oh, that. Yeah that sucks
|
# ¿ Jan 15, 2024 21:58 |
|
fart simpson posted:matlab indexing my arrays from 1, achieving smoothest brain possible
|
# ¿ Jan 17, 2024 11:43 |
|
prisoner of waffles posted:Uhhh, to get back on topic: maybe MATLAB etc. are weird because So maybe I'm misunderstanding what you're saying, but: I don't think that applied mathematicians make the best PL designers or compiler devs. I think people who have experience in those fields do. It's important to note that being good and well-designed aren't really related to adoption and usage - just look at the popularity of javascript if you need an example how not.
|
# ¿ Jan 20, 2024 05:35 |
|
Dijkstracula posted:also I think a big part of what makes haskell seem unapproachable is the extent to which it relies on partially-applied functions, type inference, and sugar like `<-` for do-notation and `.` and `$` for function application at different precedence levels, so if you don't have an editor that helps you fault that context back in your head as you need it, it can seem especially inscrutable in other words, the problem is APL
|
# ¿ Jan 22, 2024 15:46 |
|
Dijkstracula posted:more expressive types = better than go agda or go home
|
# ¿ Jan 22, 2024 15:56 |
|
go: there have been no meaningful langauge developments since the 70s other than gc which you definitely want in a systems language ffi? Never heard of it
|
# ¿ Jan 22, 2024 17:19 |
|
FlapYoJacks posted:Rust is excellent because of the borrow checker. If it's bopping you on the head with a newspaper, it's for a good reason. It is designed from the ground up to be an extremely safe language regarding thread and memory safety. If you have a multi-threaded program or a program that needs to be 100% secure, then you can be sure of those things if your program compiles. There's a reason why the kernel accepts rust and a lot of crypto applications are moving to or have moved to Rust. made it most of the way through convinced you were serious. Well done
|
# ¿ Jan 25, 2024 23:17 |
|
pseudorandom name posted:C++ is asking the important question of how many different prefixes can we slap on "value" before the language is abandoned en masse implying we'd ever abandon c++, and that we're not stuck with it forever
|
# ¿ Jan 26, 2024 05:42 |
|
Carthag Tuek posted:imo the best garbage collector is aliasing the compiler name to rm -f big fan of #!/bin/rm -f
|
# ¿ Jan 26, 2024 16:07 |
|
mystes posted:it's fine to have style preferences like that It is not fine to have style preferences like that. It's reading a Dijkstra paper title without understanding what Dijkstra was actually mad about (goto that can change frames, which isn't what C has). It's perpetuating second-hand FUD, reading XKCD and nodding while repeating "the raptors won't get me this way". It's encouraging people to create complex state machines of sentinel variables to exit loops, and making GBS threads all over readability of function exit paths that need to deallocate memory. Blind "don't use that" doesn't teach anything, whether it be why a construct exists, or how to think about its tradeoffs.
|
# ¿ Jan 27, 2024 17:46 |
|
eschaton posted:just use prefix S-expressions (now (have you (problems two)))
|
# ¿ Jan 28, 2024 07:50 |
|
Internet Janitor posted:every graphical operating system has apis for opening a window, flipping a texture to that window, and obtaining keyboard and pointer events except that it sucks when they build in a cross-plat interface, like Java did. poo poo looks like rear end
|
# ¿ Jan 30, 2024 20:14 |
|
fart simpson posted:programming language idea: java, but with html5 literals, and more support for functional programming so that someone could write a popular library that halfass emulates haskell just VMs all the way down
|
# ¿ Jan 31, 2024 04:56 |
|
Dijkstracula posted:don't forget to have the self-hosted compiler as dogshit slow as humanly possible it's self-hosting, but only because the compiler was mechanically translated from another, faster language
|
# ¿ Jan 31, 2024 05:14 |
|
Cybernetic Vermin posted:
Firefox's reader view is basically this. Also, having consistent look and feel is very important for accessibility - the wall of custom UI inhibits screenreaders, for instance
|
# ¿ Jan 31, 2024 13:29 |
|
Subjunctive posted:they are sequences of 16-bit code units, but they are not necessarily UTF-16 in that they can contain unpaired surrogate units and other illegal constructs. you can have a Windows filename such that it cannot be expressed accurately in any other encoding. (some Windows APIs will reject paths with unpaired surrogates, but not all, so enjoy) also worth noting that just because a path is valid to the rest of linux doesn't mean it's valid to the filesystem in question, so you can't necessarily perform file io just because the path is valid
|
# ¿ Feb 1, 2024 00:35 |
|
Subjunctive posted:I worked on a filesystem but it was basically “what if networked filesystem but fully POSIX and you get extN’s core feature set because that’s what we’re wrapping” so we avoided the worst pits of design hell. still managed to gently caress up a lot of stuff, but apparently people are still using it! on halloween do the trick-or-treaters come by your house dressed as locks
|
# ¿ Feb 1, 2024 03:22 |
|
redleader posted:im leaving that in the well-qualified hands of the unicode committee yes, the people who brought us han unification surely won't gently caress this up in any way
|
# ¿ Feb 1, 2024 23:56 |
|
abraham linksys posted:apple open sourced a DSL for configuration, because we don't have enough config formats https://pkl-lang.org/index.html ah good, bindings for java, kotlin, swift, and go. you know, the languages people use
|
# ¿ Feb 6, 2024 18:32 |
|
Soricidus posted:the languages people use where types and convenience matter, at least? if you use a plang then you can just shell out to the command line tool to generate json or yaml. if you use c++ or rust then you have chosen the path of suffering and deserve no sympathy. if I wanted to use shell for things I'd be writing shell
|
# ¿ Feb 7, 2024 10:40 |
|
mystes posted:Start kids with c and make them think they always need to implement all data structures from scratch each time to convince them that programming sucks and scare them away data structures are a mistake. everything that's not an array or packed struct is an affront to god
|
# ¿ Feb 8, 2024 01:37 |
|
Dijkstracula posted:they don't work, that's the beauty of it
|
# ¿ Feb 8, 2024 08:56 |
|
Subjunctive posted:this year is Java, which she’s a little more excited about, and for which I am certain that the tooling will be better are you frequently disappointed, then?
|
# ¿ Feb 9, 2024 02:39 |
|
Internet Janitor posted:i think processing is excellent for teaching programming plus the ide is terrible, which sets expectations for programming appropriately
|
# ¿ Feb 9, 2024 20:05 |
|
bob dobbs is dead posted:the way you do it w/ clojure nrepl is you just work in a text editor, select part of your program, because everything's a statement, you can select in text editor, gently caress w some part of the running program and rerun just that part of the program direct from the text editor and get the output in some other buffer never really got the hang of slime, but I could sense there was power within
|
# ¿ Feb 9, 2024 20:28 |
|
Subjunctive posted:do you do birthday parties? nah, we can't agree on date representations
|
# ¿ Feb 9, 2024 22:27 |
|
Armitag3 posted:party is over because someone brought a gift that was too big for the gift buffer it overflowed into the pool and I am NOT cleaning that up
|
# ¿ Feb 9, 2024 22:55 |
|
Internet Janitor posted:awk as an introductory programming language: I love awk
|
# ¿ Feb 11, 2024 19:22 |
|
Nomnom Cookie posted:they made a github repo and it does not solve this at all. the panic handler you get from them is loop{} with a FIXME to think about doing something sane. it also only lets you target the most recent KMDF version and makes heavy use of bindgen inside build.rs. im not holding my breath waiting for a solution from MS on this or it being a solution i'd be willing to adopt is this about how Linux does it too? Kernel halting because of a naughty driver seems like several backward steps
|
# ¿ Feb 14, 2024 15:24 |
|
Nomnom Cookie posted:linux doesnt try to unwind kernel stacks for one thing lmao. the linux kernel version of you did a fucky wucky with a pointer is an oops and actually it might do stack unwinding? i'm not sure? but you definitely don't get catch blocks. or ofc linux can panic Yeah I could have phrased my question better. I was curious how the new Rust in Linux stuff handles panic()ing - like, whether it ties it into the unwinder somehow
|
# ¿ Feb 14, 2024 18:12 |
|
crazypenguin posted:iirc it's a kernel panic. i do not know the status of trying to change it at all. makes sense, thanks
|
# ¿ Feb 14, 2024 18:27 |
|
echinopsis posted:keep going keep going I am almost there you waiting for the jvm to start up echi?
|
# ¿ Feb 16, 2024 07:52 |
|
Nomnom Cookie posted:someone just wanted an excuse to run a linker in an initrd Turns out there isn't all that much difference between a linker and a loader.
|
# ¿ Feb 18, 2024 06:34 |
|
Wheany posted:this will lead to some programs relying on the randomness of syscalls dare you play... syscall roulette?
|
# ¿ Feb 18, 2024 17:48 |
|
Nomnom Cookie posted:rob pike wrote a linker* in 1994 for inferno and there's no way steve apples vanity project is more advanced than the successor to plan 9!!!! plan 9 is in the galaxy brain "static link everything" camp. So if Pike wrote that, no wonder futuristic dynamic linking confuses golang
|
# ¿ Feb 20, 2024 06:16 |
|
Subjunctive posted:making an ABI without a programming language in mind seems like it’ll result in a system that sucks to use from all languages, instead of all-but-one languages good news, the C ABI already exists on your OS and if you're not targeting it you should be
|
# ¿ Feb 21, 2024 04:16 |
|
Nomnom Cookie posted:another thing windows gets right is making unwinding part of the platform ABI and presenting segfaults to the process as exceptions I don't hate the signal(7) interface but I also rarely want to do anything on SEGV other than dump core so
|
# ¿ Feb 21, 2024 07:22 |
|
|
# ¿ May 9, 2024 07:11 |
|
Cybernetic Vermin posted:likely would have been better had dynamic linking been confined to a well-defined set of platform libraries a vendor is standing prepared to maintain forward compatibility for. the idea of more broadly randomly swapping out large chunks of programs from under them never worked and never will. sure is a good thing for this argument that Linux distros don't exist
|
# ¿ Feb 21, 2024 17:40 |