[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Archived threads in /g/ - Technology - 4707. page

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

File: 1461308415791.png (66KB, 1484x428px) Image search: [Google]
1461308415791.png
66KB, 1484x428px
I started programming in C almost 20 years ago. Vim is, without question, the worst C codebase I have seen. Copy-pasted but subtly changed code abounds. Indentation is haphazard. Lines contain tabs mixed with spaces. Source files are huge. There are almost 25,000 lines in eval.c. That file contains over 500 #ifdefs and references globals defined in the 2,000 line globals.h.

Some of Vim’s source code isn’t even valid text. It’s not ASCII or UTF-8. The venerable file can’t figure out the encoding.
ggreer@carbon:~/code/vim% file -I src/digraph.c 
src/digraph.c: text/x-c; charset=unknown-8bit

Thankfully, eval.c is pure ASCII.

Many of Vim’s #ifdefs are for platforms that became irrelevant decades ago: BeOS, VMS, Amiga, Mac OS Classic, IRIX. These preprocessor statements may seem innocuous, but they slow development and inhibit new features. Also, Vim doesn’t even work on most of these platforms anymore. It’s just that nobody has an ancient system with which to test Vim. Neovim developers analyzed many of the preprocessor statements and found a significant number that could never be included in a working Vim.


A couple of months after my disillusionment with Vim, Thiago de Arruda submitted a similar patch. It was likewise rejected. But unlike me, Thiago didn’t give up. He started NeoVim and created a Bountysource for it.

Neovim is exactly what it claims to be. It fixes every issue I have with Vim: The plugin API. The codebase. The community. The BDFL.

Neovim’s codebase is a substantial improvement. They’ve replaced much of the hacky, platform-specific code with libuv. They’ve fixed the problems with indentation, style, and bad file encodings. They’ve removed old code for ancient, unused platforms. They’ve drastically increased test quality and coverage. There’s still much to be done, but the difference is already worlds better.
10 posts and 2 images submitted.
>>
//install gentoo
>>
>>58659625
Complexity stemming from cross-platform support may be excusable, but even something as simple as reading keyboard input is a nightmare in Vim. Stepping through with a debugger will result in call stacks such as inchar() in getchar.c calling ui_inchar() in ui.c, which calls mch_inchar() in os_unix.c, which calls WaitForChar(), which calls RealWaitForChar(). This call stack can be completely different on different platforms. It also differs when running in command line versus GUI mode.

Figuring out Vim’s control flow is harrowing. Even when you hit paydirt in RealWaitForChar(), the code is extremely hard to follow. Here’s a snippet.
# if defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)
/* Remember at what time we started, so that we know how much longer we
* should wait after being interrupted. */
# define USE_START_TV
struct timeval start_tv;

if (msec > 0 && (
# ifdef FEAT_XCLIPBOARD
xterm_Shell != (Widget)0
# if defined(USE_XSMP) || defined(FEAT_MZSCHEME)
||
# endif
# endif
# ifdef USE_XSMP
xsmp_icefd != -1
# ifdef FEAT_MZSCHEME
||
# endif
# endif
# ifdef FEAT_MZSCHEME
(mzthreads_allowed() && p_mzq > 0)
# endif
))
gettimeofday(&start_tv, NULL);
# endif

That if statement’s conditions span 17 lines and 4 different #ifdefs. All to call gettimeofday(). Amusingly, even the body of that statement has a bug: times returned by gettimeofday() are not guaranteed to increase. User intervention or ntpd can cause the system clock to go back in time. The correct solution is to use a monotonically increasing time function, such Linux’s clock_gettime() or OS X’s mach_absolute_time().
>>
File: 1470338466909.png (1MB, 759x7857px) Image search: [Google]
1470338466909.png
1MB, 759x7857px
Vim BTFO

File: PS.png (152KB, 400x300px) Image search: [Google]
PS.png
152KB, 400x300px
Assuming your computer is at idle and not doing anything important, is there any deficit or ill effect to just hitting the power switch on your supply versus the OS shut down?
29 posts and 3 images submitted.
>>
>>58659464
Yes
>>
My PSU does a "shorting" sound with some weird smell when I power it on, so fuck powering off
>>
>>58659543
That is dust burning.

Hey /g/

What is the best 4chan client on Android or /g/ approved/recommended if not best?

I'm a browser guy and all been through a fuck ton of Android browsers but tired of tying them down with a trillion tabs still open across all of them.
16 posts and 3 images submitted.
>>
File: IMG_77052.jpg (77KB, 851x638px) Image search: [Google]
IMG_77052.jpg
77KB, 851x638px
Dashchan or clover.
>>
>>58659246
Dashchan. Chaika a shit.
>>
>>58659246
Clover is fine.

File: DNbiH28.png (73KB, 519x433px) Image search: [Google]
DNbiH28.png
73KB, 519x433px
/g/, do any of you actually work in a technology-related field? Or are you really a whole bunch of socially autistic weeb NEETs? Some of you seem like you know your stuff.

Where do you draw the line of "competency" in technology?

also why does this board obsess over shitty Linux man, wtf. it's an os as much my grandma rides rollerblades.
10 posts and 2 images submitted.
>>
No

Coding bores me, I don't care about what new shit jewtel or AMD shit out


I'm getting a degree in History and then I plan on rotting away as a man with a meme degree


I'm just here for the bants
>>
>>58659171
bad bait
>>
>>58659171
endless loop of playing videogames, masturbating, and eating cookies

File: IMG_0142.jpg (304KB, 1500x1125px) Image search: [Google]
IMG_0142.jpg
304KB, 1500x1125px
Look what was waiting for me on my door step today. Care to guess what it is?

PS: Don't mind the laptop it is covering the shipping label.

PSS: Photo taken with my iPhone 7S.
23 posts and 6 images submitted.
>>
>>58659124
Did you fall for the AlienWare meme?
>>
File: IMG_0143.jpg (293KB, 1500x1125px) Image search: [Google]
IMG_0143.jpg
293KB, 1500x1125px
>>58659191
What do you think?
>>
>>58659124

>Alienware meme
>iPhone meme
>I'm "rich" so that's why I buy overpriced things meme

Macbook pro 15 2015 is great though. Good all-round machine.

File: 20170126_001326.jpg (4MB, 4032x3024px) Image search: [Google]
20170126_001326.jpg
4MB, 4032x3024px
Ok /g/ I NEED HELP! MY ROUTERS ETHERNET JUST STOPPED WORKING. I NEED IT WORKING FOR THE PING!

Pic related: its my router
15 posts and 1 images submitted.
>>
Install gentoo
>>
install gentoo
>>
>>58659077
NYPTS

File: 1473368561606.jpg (13KB, 259x206px) Image search: [Google]
1473368561606.jpg
13KB, 259x206px
France is the greatest country in the world because they did not reject nuclear power.
15 posts and 5 images submitted.
>>
File: 9a1.png (342KB, 610x434px) Image search: [Google]
9a1.png
342KB, 610x434px
>France is the greatest country in the world
stopped reading there
>>
File: 39-anbar-lions-afp-v2.jpg (99KB, 2048x1536px) Image search: [Google]
39-anbar-lions-afp-v2.jpg
99KB, 2048x1536px
>>58659084
Do not insult the United Emirates of Frankia!
>>
>Nuclear enermeme

Clean coal is the future you stupid cuck.

File: Crypt-OS-0.webm (555KB, 960x482px) Image search: [Google]
Crypt-OS-0.webm
555KB, 960x482px
New OS.
What do you think?
22 posts and 3 images submitted.
>>
Going to add a few more things soon.
>>
Reminds me of 90s interfaces.
>>
>UI ideas?
>Kids coloring book
>Ok sure

File: DSC09626.jpg (2MB, 2500x1670px) Image search: [Google]
DSC09626.jpg
2MB, 2500x1670px
explain the difference between processing 4K video vs 4K games

what exactly is at play during both instances
17 posts and 4 images submitted.
>>
An abomination of a gpu like an r7 360 could handle 4k video
>>
One is watching a video and the other is a virgin.
>>
File: 1484693919337.jpg (56KB, 342x342px) Image search: [Google]
1484693919337.jpg
56KB, 342x342px
>>58658946
gamerfags on suicide watch

File: neck man.jpg (21KB, 200x478px) Image search: [Google]
neck man.jpg
21KB, 200x478px
Is PC gaming dying?


Won't be long until Microsoft either releases updates that sabotage the performance of Windows 7 or use the backdoor to sabotage it for users who turned updates off. They have to force users to update to 10 one way or another. The longevity of Windows 7 is matching that of XP and Microsoft is losing a shit ton of money because of it.

Vista flopped hard and Windows 7 saved the day. 8.x flopped hard too but Windows 10 isn't saving the day. Microsoft really wanted people to switch. They tried making it free as in gratis in the beginning. That didn't work. They brought back the start menu after their touch-oriented gimmick failed to impress. It didn't work. They tried luring in the Apple fans by oversimplifying things and calling everything under the sun an app. It didn't work. They included Windows 10 Mobile users in their statistics for users who upgraded to Windows 10. It fooled exactly nobody.

As of today, the majority of Windows machines in the developed world still don't run Windows 10. And if it weren't for the shady deals with hardware manufacturers and the prevalence of games that require DirectX, Microsoft would have been finished by now.
34 posts and 4 images submitted.
>>
>>58658938
>Microsoft would have been finished by now.

You don't know a thing about what you're talking about, do you?
>>
File: 1480729607956.png (656KB, 569x629px) Image search: [Google]
1480729607956.png
656KB, 569x629px
>>58658938
>>58658954
Except he's correct.
The only hope Microsoft has is a new architecture that completely prevents people from using an older win on x86.
But then again: They always support a truckload of legacy so I don't think it could be done.

They're on their way out so they have to juice windows 10 with ads, botnet, and shit design because they are incapable of producing anything better.
>>
>>58658938
>>58658954
>>58659023
I have a feeling the next major version of windows, whatever it will be called, will most likely be subscription based and will probably be the real downfall of windows.

File: 1478922754226.png (528KB, 551x666px) Image search: [Google]
1478922754226.png
528KB, 551x666px
http://www.androidcentral.com/which-android-phone-does-donald-trump-use

https://www.nytimes.com/2017/01/25/us/politics/president-trump-white-house.html?_r=0

Why hasn't he purchased Galaxy S7 edge?

Why is he still using S3, which has stopped receiving security updates in 2015?

Why won't he just stick to the secure device the Secret Service has asked him to use exclusively?
136 posts and 13 images submitted.
>>
Loving every laugh.

America deserves this piece of shit
>>
>>58658885
go home CTR >>>/trash/
>>
>>58658859
KNOX equipped devices, with KNOX software enabled, are approved for use by intelligence operatives, and the president.

File: 1469621383892.jpg (73KB, 470x512px) Image search: [Google]
1469621383892.jpg
73KB, 470x512px
Is it true software developers peak in their 20's and early 30's and are thrown overboard in favor of younger candidates, dooming them to a life of insecure employment and stagnation as their ability to learn deteriorates?
6 posts and 1 images submitted.
>>
>>58658772
Only if you're a stupid codemonkey. They want you young to pay you less.
>>
>>58658772
No. Young people just work for less, do not question if they sometimes have to work late and have no outside work obligations like family, all they have in home is Xbox.
>>
>>58658772
>not leading your own projects by mid-30s
The problem isn't your age in this case.

File: 1475407153798.jpg (15KB, 410x337px) Image search: [Google]
1475407153798.jpg
15KB, 410x337px
/g/ what's a good, stable linux distro with long term support to put on a laptop thats mainly going to be used for university work - mainly programming?
20 posts and 3 images submitted.
>>
>>58658727
gentoo
>>
openSUSE is the only linux distro with thumbnail preview in the Firefox file picker. openSUSE is the best linux distro.
>>
probably debian (I hate debian but it seems to be popular enough)
gentoo is a good option to but installing it is a pain
I used Arch for a while and I liked it, I don't recall it giving me trouble, but I wasn't the kind to update often (about once every 2 weeks), I've heard that it breaks with some updates though, so I wouldn't say it's very stable

File: serveimage (2).jpg (39KB, 650x300px) Image search: [Google]
serveimage (2).jpg
39KB, 650x300px
Alright /g/

I'm a starving student looking to buy a second drive for my laptop. Right now it has a 120GB SSD. Is a hybrid drive a good solution, or should I go SSD or HDD?
11 posts and 1 images submitted.
>>
ddoes laptop have msata?
>>
Save up 25 a week. Get a 525 gb ssd after 6 weeks.
>>
>>58658695
The fault of SSD's is that if your SSD goes bad, the whole thing goes bad at once and it basically isn't rescue-able in any form.

HDD's on the other hand, usually only fail mechanically-- extremely rare chance that it's due to the actual platters degrading, and because of this the data is actually rescue-able.

Combine both, and you get the retardation known as a SSHD.

If the SSD segment (stores your most used files on the SSHD) goes bad, R.I.P. your most used files, lul.

So in short:

Use a SSD for your OS Installation and most-used apps to increase boot times.

Get a 500GB or 1TB 7200RPM laptop HDD to store your images, videos, photos, and gaymes.

from a practical perspective which language is the best language to learn for a complete beginner?

i'm talking about in terms of practicality, applicability, usefulness, as well as overall merit as a teaching tool.

java vs python
20 posts and 1 images submitted.
>>
Python
It's literally impossible to prove me wrong, so don't even bother trying.
>>
>>58658638
what are some of your rationales as to why you believe so?

also if you truly believe in yourself, you should be able to list some reasons as to why python 'wouldn't' be the ideal choice
>>
python is for hipsters, redditors, and script kiddies.

so the answer for OP is python

Pages: [First page] [Previous page] [4697] [4698] [4699] [4700] [4701] [4702] [4703] [4704] [4705] [4706] [4707] [4708] [4709] [4710] [4711] [4712] [4713] [4714] [4715] [4716] [4717] [Next page] [Last page]

[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.