IT討論區(80) 做連卡佛真係好幸福,有得減薪50%,IT狗就已被炒,減薪100%

1001 回覆
8 Like 0 Dislike
2020-04-25 02:13:12
大聲啲講多次 返工為左咩
2020-04-25 02:22:48
TL;DR you should not treat C as portable assembly anymore.

C is no longer portable assembly because compilers are so smart today. C compilers can generate code that looks very different from what programmers expect as long as the semantics is the same according to language specifications. A few examples:

1. Optimizing compilers do loop transformation. A simple for loop can be unrolled and peeled.

2. With SIMD instructions available on all major CPUs, most compilers do vectorization. A Loop can be transformed into equivalent using vector instructions. With 1), a simple C loops in a few lines can be compiled into many hundreds of instructions because the compiler aggressively unrolls and vectorizes the loop.

3. Compilers recognize some common code patterns can replace those with calls to run-time library functions. If you write a loop to copy memory, the compiler may replace that with a call to memcpy(). Question: what if I am implementing my own memcpy() in C?

4. Compilers take advantage of undefined behaviours in language specifications. It can do anything, including deleting your code in your back if you write code with undefined behaviours. For example, you should not check integer overflow in C using "if (x + 1 < x) { /* overflow */}". Your compiler can delete the whole thing without notice.
2020-04-25 02:30:45
https://www.bountysource.com/

C++,用腦,OSS,有錢收
2020-04-25 07:56:25
You can turn off all optimizations with a command line flag like -O0 or turn off individual optimization.

You don't want to turn off optimizations normally as you are going to drop tonnes of performance if you do so. I do low-level system programming for a living and I write assembly very rarely. If I do, I prefer embedding code inside C/C++ code instead of writing in pure assembly.
2020-04-25 08:29:47
C Is Not a Low-level Language
Your computer is not a fast PDP-11.


David Chisnall

In the wake of the recent Meltdown and Spectre vulnerabilities, it's worth spending some time looking at root causes. Both of these vulnerabilities involved processors speculatively executing instructions past some kind of access check and allowing the attacker to observe the results via a side channel. The features that led to these vulnerabilities, along with several others, were added to let C programmers continue to believe they were programming in a low-level language, when this hasn't been the case for decades.
...
https://queue.acm.org/detail.cfm?id=3212479
2020-04-25 09:06:47
2020-04-25 09:08:13
2020-04-25 10:32:58
LinkedIn 有啲 agent真係好垃圾
野雞大學讀marketing
然後做左agent 3個月唔夠就話幫你揾工同改善你interview技巧
fountend backend都未分到
呀叔我見工多過你過靚妺in人啦
毛都未出整
想in我?去時鐘酒店咪慢慢同你in
2020-04-25 10:37:06
有d 仲搞笑,fg agent 做得幾個多去話教我呢d experienced professional 點plan career 同比意見我。
2020-04-25 10:49:47
唔學low level就要學design pattern先高人工
2020-04-25 10:56:25
2020-04-25 10:58:44
乜都唔識
2020-04-25 10:59:37
好想fg妹妹幫我plan career
2020-04-25 11:01:36
2) 我好想知其實database既operation有冇用simd?我睇postgresql d source code都係for loop
2020-04-25 11:01:37
Github 有一個800 Stars 130fork既vue project, 但人地好似睇唔上眼咁
2020-04-25 11:04:20
咁你不如花D時間睇下果800個比stat你既人,有冇請緊人
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞