comp-sci
Discord ID: 423219052849397773
17,577 total messages. Viewing 250 per page.
Prev |
Page 17/71
| Next
Sounds great, until there's no more funding and the language gets abandoned. Or the version you wrote all your software in, gets deprecated.
or the language isn't completely planned out and just becomes a total mess of unmaintainable half-implementations
Remember D? The "definitive C++ killer", by Walter Bright? Dude is really a genius with regards to compilers, but even he, screwed up and couldn't get it right the first time.
yeah I was actully really into D in the beginning and wrote a few little things in it
but stuff never really worked and pretty much anyone who ported interfaces for it just stopped
He created the first C++ compiler that generated native code (instead of compiling C++ to C), and proposed a bunch of details on the standard, to allow advanced low-level optimizations.
Return Value Optimization, Copy Elision, he invented it.
what do you think of Rust? I checked it out a few times but it was always a mess, and then all the sudden a bunch of stuff is being re-written in it and the head of the project is an insane SJW who's kicking people out who aren't trans minorities
Also, that's one of the things that made C++ a non-deterministic language.
Which makes Programming Language Design professors run away from C++.
that's a good point
It's hard to prove formal properties of code that you don't know *exactly* what's going to do.
Honestly, when a company comes showing "here, we just invented a new language", I see zero value in jumping in early.
If one of the selling points is "it's like C++, but ~~with less features~~ simpler", you can be sure, they'll slowly add these features in later, and pretend they're innovating something.
right, the only reason I got into D was because of Bright and because of the familiarity of a lot of it
Rust I've done like hello world and some little stuff just to see what it was like
honestly what I dislike the most about Rust right now is the community
fuck any project with a CoC I'm weary of now
I started using Mercurial because Mozilla was using it. But I won't touch Rust.
In the early days of the boom of distributed source control, I went through Mercurial, Bazaar, one other that I don't even remember, everyone forgot... later git came about, I tried it too.
well Mozilla could have gone a totally different way if they hadn't chased out Eich
Monotone, that's the one.
never heard of Monotone
never liked Bazaar
Exactly.
used Mercurial for a bit, but Git went crazy and I'm so OSS it seemed silly not to just go full git
we had an SVN sever before that which shit the bed on us and we had to completely re-assemble a really messed up code base
I'm more of a Free Software guy.
Monotone was supposed to be good because it was fast, written in C++. But it turned out Mercurial was virtually just as fast, because most of the time was spent doing I/O, and they did some tricks to optimize I/O.
honestly after coming from SVN speed was never so much of a consideration
if it was faster than SVN it was fast enough
Speed matters if you're dealing with a massive project, and your workflow requires switching between branches, or rolling back and forth between revisions to locate regressions.
That is, if you're Linus Torvalds.
we're a small team and we work with pretty tight feature branches, so that would rarely be an issue for us
If you're a kernel developer, you wake up, there are 20 new patches/pull requests since last night, waiting in your inbox, for you to review, apply, test. You'll spend most of your morning checking if they conflict with each other and rebuilding to test things. Probably the source control management takes half of your morning.
yeah, for sure, and I think that also describes a lot of how git is designed
doing that in SVN would be torture
I'm watching this. Quite interesting, on how LLVM does some optimizations.
"Const methods and const references play no role in the LLVM optimizer."
this guy's talks are typically pretty good
Trying to help out on a node project and it's using "knex" to build DB queries. I have no idea why anyone would use this, the code is literally longer and more complex than just a raw sql query. It doesn't even completely abstract database types like a proper ORM would.
seriously why is the JS world so full of shit
Because JS programmers.
JS web apps are the reason humanity deserves nuclear annihilation
radical Islam > JS
I should become an imam and declare a jihad on using unmaintained node packages in production software
Best followup talk.
I'll watch that in a bit, that looks good
LLVM can do up to 3 inline optimizations, and he still doesn't know why.
... huh
runtime overhead limit?
no
huh
He can manually control the optimizer passes to convince the compiler to do a 4th inlining.
The optimizer is derived from something I assume
Clang is a front-end for LLVM.
ah
He's not a LLVM programmer, although Clang is their most important front-end.
I mean, he's not responsible for LLVM itself.
back when I did embedded stuff we would mess with the runtime to create different runmodes, and we did stuff like made generic unrolled loops for rasterizing and we'd put them straight into the runtime
so basically to do a draw cycle we'd use a DMI call to switch runmode
for some reason that came to mind just now but thiking about it there's absolutely no way that's how clang is doing any sort of optimizaiton
*incomplete thought - the crt had a size limit so in my head optimized code + limit to 3 connected to that
none of this is making any sense is it
I should probaly take a break soon
Clang doesn't optimize. It just spits out correct IR to LLVM.
Well, according to the previous talk, Clang only tries to remove dead code.
makes sense
He talks about how LLVM does bottom-up passes, while GCC does top-down. Both with fallback heuristics that try to work the other way around in special cases.
You're making me want to get into a big C++ project again. I haven't done a big C++ project in probably ~2 years now
i have a love/hate relationship with C++, but its the thing i use the most.
and i totally agree about JS, and Node especially
jesus christ
entire published "packages" to determine whether a number is odd or even lol
I've had a C++ fetish since I was maybe 13 or so. I tried to learn it on my own for years, went through tons of books, ended up properly learning C at about 15 and doing a bunch of embedded stuff in C with increaing ammounts of ASM mixed in, then really got back into C++ maybe from when I was 17 or so. I ended up completely disliking a lot of featues like STL at the time (and still today kinda) because they were so overused at the time, so I coded most of my own stuff with pretty much only the basic features of C++ with a ton of low level style C'ish code
now I've been spoiled by languges like Ruby so I end up using a ton of the new features and completely abuse Boost
yeah started with C, did quite a bit of embedded stuff (and FPGA/hardware) in university, and C++, and then mostly did C++ in jobs and grad school. I like STL, but I hate when people abuse it and do stupid shit with it... using it wrong can be _really_ bad for performance
i've seen STL heavy programs spend 30%+ of total runtime in `new` and `delete`
back when I was getting into it I think STL was fairly new and people would do shit like completely rewrite completely functional libraries to be super abstracted with STL.. So you'd use them and get insane errors that were just super abstract
It's so much better now.
it's come a long way yeah
and if STL doesnt have it, then boost probably does
agreed
I just can't stand not having RAII and Rule Of Zero.
man i still get confused about move semantics and that shit sometimes
why RAII?
Most of the time you don't even have to remember about moves.
Like, `T&&`.
Just take by value.
I guess, but I kinda feel like that's part of what makes it a ~C language
RAII, let all resource cleanup happen automatically. Suddenly you notice 90% of your destructors are empty, the other 10% is trivial.
And you barely need `try/catch`.
Point taken, but I've never particularly disliked writing destructors.
then again I'm not maintaining huge C++ codebases at the moment so I have that luxury
i agree with anything that lets me avoid try/catch
A month or so ago I was doing some serial/FTDI coding. Rewrote a utility originally in C. Half of the original code was error handling and cleanup. The C++ version had just 5 lines in `main()` to report the error message, no explicit error handling or cleanup anywhere else.
nice
Any time an exception would happen, the class would properly reset the device to a known state. So I could just read/write without worry.
Ever since I started titling myself "Computer Programmer" I keep getting offered odd non-programming basic tech jobs by random people.
haha, because people don't know what "computer programmer" means
I helped fix my friends computer, and she goes "so this is what you do all day for work?" ๐ฆ
I told her I have IT people to fix my computer for me at work...but a lot of people just don't understand the differentiation between different tech specializations
I'm half tempted to take the jobs. If I can get a programmer cut for IT work
So far my trainer asked if I could set up his new laptop. Ok thats insanely easy, it basically does it all automatically. At most I might do a windows reinstall, even then its a button press. Other job was by a local coffee shop owner who wanted someone that could "hack" information. He wanted to make a dectective agency and wanted a tech guy. Kinda out there that guy. Even then, it would just be social engineering to get info which can be done by anyone that knows how to work social media
@meratrix
>be studying CS
>Family: CAN YOU FIX MY COMUPUTER???????????????
fucking yep
My family is picking up on the backlash to that sentiment, sloooooooooooooowly
CS doesn't involve knowledge of computer parts other than how they function in particular. Just tell them to find someone versed in IT or whatnot. x3
IT is a waste of time for programmers.
In regards to earlier: GC tends to be pretty resource heavy.
But GC is pretty essential.
Also, yeah, having a hard-on for programming in C++ is a bit detrimental, while it's absolutely essential to have fundamental knowledge of lower-level programs and how any language you're currently using that's higher level will be parsed and compiled into at a base level (for optimization purposes) holding onto only working in C++ just kills your ability to program something in a short/efficient period of time.
C++ is very high level dude.
The only edge other languages have is the easy-to-install 3rd party modules.
Who knows, maybe C++23 will have modules.
MS has been pushing for their own horrible package manager.
And I'll take RAII over GC any day.
GC is a tool for only one kind of resource, memory. RAII is more general. You can start to think about various things as resources that can be managed.
Well, I don't know about you, but I don't know many people that actually work directly with assembly. @DanielKO
I only work with it when I've reverse-engineering keygen mes.
``` L = L1;
L <<= 16;
L |= L2;
L >>>= 0;
R = R1;
R <<= 16;
R |= R2;
R >>>= 0;``` I remember this one.
And then my code comments like this.
I only ever do littl snippets of inline stuff for specific functionality on embedded stuff now
but even that is super super rare
*ASMโ
I was the man with ARM32 ASM back in the day
There was the logic for the mask.
It was a series of numbers that would follow under those specs.
I could have made a bitmask to clean it up, but yeah.
It's expanded logic.
The keygen after that was encoded with time hashes.
On blowfish.
That was... a hard one.
Has anyone ever used Radare2 for reverse engineering?
If so I would like some assistance
fixing a computer is 90% google tbh
unless whatever is broken is just the person being retarded
like my Barber who thought her computer was broken because it told her to repeat her password and she didn't know what that meant <:think_woke:378717098681171988>
people are technologically illiterate af
@Ruggwain exactly my dude
Legendary barber again
She called because she's friends with my mother
Apparently she asked someone about getting a new computer
And he told her to get something with 'window' on it
And she asked my mother if she knew what that was and if she could help her find something like that
<:think_hang:378717098903470080>
Lol
She could just walk into a store and buy anything.
As long as it isn't an Apple store.
Go to Best Buy, Target, etc, ask if they sell computers. It's not like she needs a gaming PC.
But hey, on the bright side, helping someone *buy* a computer is almost no work, compared to *fixing* a computer. Easiest favor to do to someone.
why not use wireshark?
was he doing a man-in-the-middle attack with an SSL-Proxy?
I messed around with network coding a little bit and it was a pain in the ass for me at the time.
so can anyone resolve this error https://i.imgur.com/18JsmM8.jpg
you should study history, then no one will ask you any questions ever
are you trying to make your life difficult and use linux command structures, in windows, and not use a program dedicted to gitting? Or is this a sort of package install?
If so, Node/Something python-based is the way to go.
Usually go together.
NPM, etc.
At any rate, looks like you should find yourself a package manager for whatever it is you're working with.
@What Would Jack Conte Do? Power shell is not *sh compatible posix style command line. Run it in something like bash or zsh or whatever
also Power Shell is pretty much terrible for doing just about anything other than scripting for windows servers
but when you _do_ need to do scripting in windows, powershell is pretty great
@picnicnapkin When you do need to do scripting in Windows you basically don't have any other real option...
@Deleted User My trackpad finally works again, FUCKING FINALLY!!!!!!!
and now it's stopped working as soon as I typed that again.
fucking kill me
lol
It works before I log in because before you log in windows uses the old ps/2 drivers, and then starts using the newer ones once you log in
the problem, is that there seems to be nothing wrong with my drivers.
so I'm stuck
๐คท
rip
Would it be possible to force Windows to uninstall the trackpad and reinstall the driver for it?
I dunno
One of the most common things I see while looking for a solution is people saying they want to go back to Windows 7.
You can do it through the Device Manager, but if your trackpad is disabled outright then do you have an alternative mouse to use for the UI?
yeah I do, it's just annoying when I forget my mouse
nope, uninstalled and reinstalled
nothing
๐คท
Someone actually took time to do this<:high_iq:382980759012638731>
high-tech rube goldberg
if it work, Im not gona stop you
does anyone use mechanical keyboards?
is this a question that leads to another question
actually no lol
i recently got one and i will never go back
they *are* rather good
long as you don't have people nearby trying to sleep
CLACKITY CLACK CLACK
I use a mechanical keyboard
I prefer non-membrane pantagraph though
but they aren't known for lengevity... thus the reason I am currently using a mechanical
+ pantagraph that aren't membrane are super rare outside of some high-end notebook lines. The one I was using before I basically had to special order
Razer is coming out with one apparently though
i have one with cherry brown switches so its not super loud
I just crimped my first RJ45 head in .... like 15 years
I have blue kahle switches in the current board I'm using. I'll only be using this board till I find a new pantagraph keyboard without any rubber/mebrane but I'm not holding my breath and I like it in the mean time
wtf!?
oh it's the drivers. I suspect those aren't the official drivers --- though not that I actually care I don't use anything from logitech
Oh i hate the logitech software
"software" as in there's something other than drivers?
I had to cripple its telemetry
Yeah for the G series mice
wait so you need some special software to use a mouse?
Need for setup, set polling speed dpi remapping etc
It has a numpad on the side
oh, I have an ASUS mouse that can do that but it's just a client you run and when you're done you just close it
The program doesnt need to stay open
and someone reverse engineered it so I don't even bother switching to windows to do it I just do it from within linux
I mean, it stays open in the taskbar actually
I could actually do stuff like hook up the reverse engineered stuff to like change the mouse LED color when I have mail or whatever
I might get similar from asus if their software is less shitty
the windows software was fine
doesn't stay open/in the task tray
and it's just one piece of software for all their stuff
they have a common protocol for all their stuff
EG lighting is AURA etc.
My asus mobo has terrible software so i havent bought anything from them in awhile if it would need a driver
my ASUS motherboard is pretty good all in all, but I'm not running special software for it
Z370-F
had the right sepcs and was on sale for the right price
I must admit I like how it looks too
too bad my cable runs are garbage and I'm too lazy to make them all tidy
but I don't have lights in my case or whatever and I'm the only one who ever looks
^^^ in my YT stats
"India (0.0%)"
OMFG system library management on windows is as solid as diarrhea. I have libcurl on the path - can't find it. I specify the exact location of libcurl in the build dirrectives - can't load it. Delete line in build directives and put libcurl in the local build folder - WORKS. I have to package this by the middle of next month and I'm seriously thinking of just blowing money on having a windows dev do it for me because this is awful.
Linux I just specify the dependency in the packaging file and it will just be there - no having to specify extra stuff it's just there and that's that
how is it like 25 years of packaging systems working on Linux/BSD/etc. and MS can't come up with something similar?
@ฦตero hahahha ๐คฃ๐คฃ๐คฃ๐๐
Youโre actually expecting MS to be competent?
I actually know the reason why they don't have system level library management (to prevent moving target/dependency issues and because dll's aren't technically "shared" libraries like SO libs on POSIX systems) but at this point if you can't figure that out with billions of dollars then you can basically go fuck yourself. SO versioning issues only come about if you have a maintainer that is super anal about mid versioning anyway and that's an issue with the maintainer not the management system.
It's just insane to me that I have to open a browser, hunt down libraries one by one, make sure they are built to be compatible with eachother (native/mingw/cygwin....), download them, unpack them/install them, then figure out how to get the system to recognize they're even there or that they can be used. A 5 second process on Linux is taking me almost a day now on Windows.
also chocolately is the biggiest pile of shit ever
while we're on the subject OS-X is probably worse
at least on Windows we can do this kind of thing fairly freely and without breaking the standard system. Homebrew and non-homebrew systems don't mix and homebrew changes all sorts of system environment settings which seems to break random things
17,577 total messages. Viewing 250 per page.
Prev |
Page 17/71
| Next