archived
stringclasses
2 values
author
stringlengths
3
20
author_fullname
stringlengths
4
12
body
stringlengths
0
22.5k
comment_type
stringclasses
1 value
controversiality
stringclasses
2 values
created_utc
stringlengths
10
10
edited
stringlengths
4
12
gilded
stringclasses
7 values
id
stringlengths
1
7
link_id
stringlengths
7
10
locked
stringclasses
2 values
name
stringlengths
4
10
parent_id
stringlengths
5
10
permalink
stringlengths
41
91
retrieved_on
stringlengths
10
10
score
stringlengths
1
4
subreddit_id
stringclasses
1 value
subreddit_name_prefixed
stringclasses
1 value
subreddit_type
stringclasses
1 value
total_awards_received
stringclasses
19 values
False
[deleted]
None
[deleted]
null
0
1544531707
1544652761
0
ebk4qm5
t3_a55xbm
null
null
t3_a55xbm
/r/programming/comments/a55xbm/how_the_dreamcast_copy_protection_was_defeated/ebk4qm5/
1547467921
131
t5_2fwo
r/programming
public
null
False
couscous_
t2_2orqfro0
Also, the thing is that there are no GC collections happening in this test to begin with. This is just the time it takes to scan the live object heap. So while what you're saying is correct, it doesn't apply here.
null
0
1545780279
False
0
ecjtto6
t3_a9gej5
null
null
t1_ecjsxxs
/r/programming/comments/a9gej5/avoiding_high_gc_overhead_with_large_heaps/ecjtto6/
1548070475
1
t5_2fwo
r/programming
public
null
False
mr_birkenblatt
t2_d7qfg
VCS's have natural ways of shutting down unwanted code changes
null
0
1544531759
False
0
ebk4rzw
t3_a52jc5
null
null
t1_ebjym9f
/r/programming/comments/a52jc5/the_architecture_and_history_of_git_a_distributed/ebk4rzw/
1547467938
19
t5_2fwo
r/programming
public
null
False
aeroproof_
t2_oxy8c
I write a lot of both Python and Ruby and I think if you like Python, you’ll *probably* like Ruby. The idea that Ruby translates from English well is nice. I find it a very fun language but as with all things, YMMV. You should give it a go and decide for yourself. Tbh if you know Python already though it’s unlikely Ruby will be adding anything to your toolbox. So don’t expect much more than a potentially interesting experiment :)
null
0
1545780293
False
0
ecjtue7
t3_a9dkji
null
null
t1_ecjn1ik
/r/programming/comments/a9dkji/ruby_260_released_thank_you_everyone_who_worked/ecjtue7/
1548070485
6
t5_2fwo
r/programming
public
null
False
idobai
t2_fu8kq
> Readability of the code is incredible I don't think so because it's too monotone and too long - this is why it's very hard to infer the "grand" picture. > type system (even with a lack of generics) helps a lot Is there anything in its typesystem which makes it better? Because I can't see anything in the docs. I tried golang when it reached 1.0 but it was a disappointment for me. > and standardized tooling around the language is pretty good also. If you're talking about gofmt and similar then those tools are available for almost every language. > Please tell me why I'm wrong. There's nothing special in golang. Even if it'd have generics and an error management system I'd still ignore it because it's just an empty language. It has a simple GC. Its concurrency model is not safe and too limited. Its performance is good enough for webapps but it isn't really competitive with c++. And on top of these go code has too much boilerplate.
null
0
1544531831
False
0
ebk4tyq
t3_a541an
null
null
t1_ebk2kh6
/r/programming/comments/a541an/just_tell_me_how_to_use_go_modules/ebk4tyq/
1547467963
25
t5_2fwo
r/programming
public
null
False
Smallpaul
t2_u1ac
I’m not making an appeal to authority. I’m not claiming his arguments are correct.
null
0
1545780316
False
0
ecjtvjm
t3_a9e0a5
null
null
t1_ecjtihe
/r/programming/comments/a9e0a5/programming_a_problemorientedlanguage/ecjtvjm/
1548070499
8
t5_2fwo
r/programming
public
null
False
KHRZ
t2_715a1
So what do you think of the thousands of `(x IS null OR x > startDate) && (y IS null OR y <= endDate)` in my previous company's accounting system?
null
0
1544531846
False
0
ebk4udy
t3_a4zp2m
null
null
t1_ebjqhuz
/r/programming/comments/a4zp2m/boolean_short_circuiting_is_not_guaranteed_in_sql/ebk4udy/
1547467967
1
t5_2fwo
r/programming
public
null
False
_Coffeebot
t2_tlvr9
You're not going back far enough, did you get the chip manufacturers? What about where the raw material was produced
null
0
1545780418
False
0
ecju0gr
t3_a9hs3u
null
null
t1_ecjqldt
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecju0gr/
1548070560
11
t5_2fwo
r/programming
public
null
False
didibus
t2_4xpocx2
> This enables Dart to have native code performance. As it is native code. What is native code performance? In theory isn't AOT most likely slower to a JIT? Since a JIT can know more about the execution context?
null
0
1544531881
False
0
ebk4vb5
t3_a55qhp
null
null
t1_ebk4n60
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk4vb5/
1547467979
10
t5_2fwo
r/programming
public
null
False
couscous_
t2_2orqfro0
Sure public class gctest { public static void main(String[] args) { long start = System.nanoTime(); final int[] a = new int[1000000000]; System.out.println("Allocated in " + (System.nanoTime() - start)/1e6 + "ms"); for (int i = 0; i < 20; i++) { start = System.nanoTime(); System.gc(); System.out.println("GC took " + (System.nanoTime() - start)/1e6 + "ms"); } System.out.println(a[100]); } } Run it with `java -server -XX:+[UseParallelGC | UseG1GC | UseConcMarkSweepGC] gctest` depending on which GC you want to test.
null
1
1545780468
False
0
ecju2w6
t3_a9gej5
null
null
t1_ecjt2dd
/r/programming/comments/a9gej5/avoiding_high_gc_overhead_with_large_heaps/ecju2w6/
1548070589
-2
t5_2fwo
r/programming
public
null
False
driusan
t2_bvkul
Two things worth noting: 1. when you do go mod init the name should be the same as the URL where you expect it to live (just like if you were using GOPATH) 2. The vendor directory won't be used except by older versions of Go unless you pass a flag to go build.
null
0
1544531985
False
0
ebk4y2t
t3_a541an
null
null
t3_a541an
/r/programming/comments/a541an/just_tell_me_how_to_use_go_modules/ebk4y2t/
1547468013
5
t5_2fwo
r/programming
public
null
False
ChemicalRascal
t2_4ta76
Oh my god. We have to solve physics first before we can be sure that quantum mechanics itself doesn't have a backdoor.
null
0
1545780526
False
0
ecju5rq
t3_a9hs3u
null
null
t1_ecju0gr
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecju5rq/
1548070627
8
t5_2fwo
r/programming
public
null
False
Pm_me_any_dragon
t2_xtyfl
Along with finding good names and off by two errors.
null
1
1544531996
False
0
ebk4yd8
t3_a541an
null
null
t1_ebjyqog
/r/programming/comments/a541an/just_tell_me_how_to_use_go_modules/ebk4yd8/
1547468017
2
t5_2fwo
r/programming
public
null
False
pulpyoj28
t2_qyer0
Also looking at this again no automated testing I have in place would have caught this _before_ Xmas day. Tricky!
null
0
1545780535
False
0
ecju67j
t3_a9hs3u
null
null
t1_ecjteq1
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecju67j/
1548070631
9
t5_2fwo
r/programming
public
null
False
the_slovenian
t2_10dw86
[https://flutter.io/showcase](https://flutter.io/showcase) Alibaba has used Flutter to make an app with over 50 million downloads
null
0
1544532013
False
0
ebk4ysl
t3_a55qhp
null
null
t1_ebk49k6
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk4ysl/
1547468022
19
t5_2fwo
r/programming
public
null
False
McNerdius
t2_5e8bl
You speak of shades of grey, and then drop this "all or nothing" whatnot: > I thought they are all about open source now ... --- Rewind a bit: > Chromium being "open source" does not change anything. It would be as if you'd have a project controlled 99% by Google worker drones. You would be saying the same of Windows/MS if they were to open source it, would you not ? --- Damned if ya do, damned if ya don't.
null
0
1545780592
False
0
ecju93w
t3_a9i9ij
null
null
t1_ecjkosr
/r/programming/comments/a9i9ij/microsoft_had_another_year_of_big_opensource/ecju93w/
1548070667
19
t5_2fwo
r/programming
public
null
False
skulgnome
t2_37fao
Well, you could've called it "bare metal development for dummies". The problem is that most tutorials like these stop at getting a hello-world running, while still remaining titled "operating systems".
null
0
1544532016
False
0
ebk4yvg
t3_a4sqkc
null
null
t1_ebiw9nr
/r/programming/comments/a4sqkc/operating_systems_development_for_dummies/ebk4yvg/
1547468023
1
t5_2fwo
r/programming
public
null
False
HellfireOwner
t2_2juz5fhu
You told me to google who 'this guy' is. That is irrelevant information to the case. Information whose only value is an appeal to authority. Stick to your guns or apologize. Pretending you didn't imply what you implied is pathetic.
null
0
1545780654
False
0
ecjuc08
t3_a9e0a5
null
null
t1_ecjtvjm
/r/programming/comments/a9e0a5/programming_a_problemorientedlanguage/ecjuc08/
1548070703
-6
t5_2fwo
r/programming
public
null
False
m0dev
t2_sxtkd
>I definitely agree on keeping PRs to a single scope. That's been a pain point for my team, especially since we just moved to a much stricter lint configuration that sometimes requires unrelated style changes to pass the automated tests. Yeah, we often talked about the boy scout rule and how we should apply it.I really like people cleaning up when they visit by, but please not in the "commit" you came in for :) And we also have often such commits where stuff more or less gets developed incremental, just make sure that everybody is on the same page about it.
null
0
1544532239
False
0
ebk54z8
t3_a4z6ia
null
null
t1_ebity6x
/r/programming/comments/a4z6ia/code_review_best_practices/ebk54z8/
1547468098
1
t5_2fwo
r/programming
public
null
False
Blackop778
t2_eoucx
It's treason then.
null
0
1545780730
False
0
ecjufsq
t3_a9hs3u
null
null
t1_ecjryu6
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjufsq/
1548070750
4
t5_2fwo
r/programming
public
null
False
OneNeptune
t2_13gojy
Yeah but like Java is in billions of devices! /s
null
0
1544532460
False
0
ebk5awx
t3_a55qhp
null
null
t1_ebk4ysl
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk5awx/
1547468171
23
t5_2fwo
r/programming
public
null
False
oridb
t2_90rkq
That's not equivalent, though -- you're allocating an int, but the go test is allocating an int pointer. The entire point of the benchmark in the article was to show that allocating an int pointer array causes larger gc pauses than allocating an int array. The code in Go that was running 460ms looks like this: a := make([]*int, 1e9) If you want to do what your benchmark does, it should be this: a := make([]*int, 1e9) Which runs a collection in about 120 microseconds. Because Java doesn't have pointers, you'd want to use an array of boxed `Integer`s. However, in a benchmark this simple, I suspect the JIT would be smart enough to autounbox, so I you want something like this: public class gctest { class IntHolder { private int a; }; public static void main(String[] args) { long start = System.nanoTime(); final IntHolder[] a = new IntHolder[1000000000]; System.out.println("Allocated in " + (System.nanoTime() - start)/1e6 + "ms"); for (int i = 0; i < 20; i++) { start = System.nanoTime(); System.gc(); System.out.println("GC took " + (System.nanoTime() - start)/1e6 + "ms"); } System.out.println(a[100]); } } Note that while you would normally pay a higher cost for having an object wrapper here, it shouldn't matter as much since you're not allocating it, you're just not flagging to the GC that the value is a primitive and not a pointer. This is only vaguely of an apples to apples comparison, so if the results were within a few tens of percent, I'd call it a tossup, but there's a big enough difference here that there's a clear winner. The summary of the results: |Java | Go :--|:----|:----- Direct Ints | ~25000µs | ~140µs Indirect Ints | ~1700ms | ~330ms So, to give a baseline, I ran your unmodified Java code: Allocated in 1588.377929ms GC took 70.117715ms GC took 26.250789ms GC took 22.876463ms Then I ran the Go code which does the same direct integer allocation: GC took 244.096µs GC took 130.185µs GC took 145.969µs GC took 147.855µs And indirect integer allocation: GC took 12.279111517s GC took 308.362856ms GC took 330.209157ms GC took 338.268384ms Then I ran the Java code with indirect allocation using the defaults: `java gctest`: Allocated in 1573.726147ms GC took 2618.477615ms GC took 1766.248532ms GC took 1718.856423ms With `-server -XX:UseParallelGC`: Allocated in 1599.216362ms GC took 2727.076425ms GC took 1744.257799ms GC took 1665.640576ms With `-server -XX:UseG1GC`: Allocated in 1651.545431ms GC took 5581.726702ms GC took 5564.026825ms GC took 5568.255731ms With `-server -XX:UseConcMarkSweepGC`: Allocated in 1699.389624ms GC took 3039.736911ms GC took 3296.650701ms GC took 2607.151828ms (Edit: Shuffled around and summarized benchmarks for readability)
null
0
1545780843
1545782820
0
ecjulen
t3_a9gej5
null
null
t1_ecju2w6
/r/programming/comments/a9gej5/avoiding_high_gc_overhead_with_large_heaps/ecjulen/
1548070848
14
t5_2fwo
r/programming
public
null
False
tatersnakes
t2_9xoey
As someone who generates these logs, I disagree. There are multiple audiences for changelogs. QA, for instance, wants to know what tickets were fixed — and following a strategy like the one outlined in the post allows you to compile this list with a simple bash one liner.
null
0
1544532584
False
0
ebk5ecm
t3_a4uynu
null
null
t1_ebjpcb7
/r/programming/comments/a4uynu/on_the_importance_of_commit_messages/ebk5ecm/
1547468214
2
t5_2fwo
r/programming
public
null
False
BraveSirRobin
t2_o367
There are some sectors in programming where this *is* a requirement if you use libraries. In some cases there are legal due diligence factors that mandate it, generally speaking it's when severe injury or loss of life is a distinct possibility.
null
0
1545780859
False
0
ecjum86
t3_a9hs3u
null
null
t1_ecjhb53
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjum86/
1548070857
17
t5_2fwo
r/programming
public
null
False
grayrest
t2_32m6
Dart is the pet language of the money making side of Google (ads). That's all it really needs for sustainability. I think it's the most boring language on the planet so I have no desire to build out the package ecosystem but I wouldn't mind using it.
null
0
1544532616
False
0
ebk5f8i
t3_a55qhp
null
null
t1_ebk1kck
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk5f8i/
1547468224
7
t5_2fwo
r/programming
public
null
False
Tri-P0d
t2_1wepilb6
It works out of the box and has sensible defaults and packages. I can use it on the home and work computers without much config or setup.
null
0
1545780991
False
0
ecjut0o
t3_a9fg8h
null
null
t1_ecjim02
/r/programming/comments/a9fg8h/spacevim_release_v100/ecjut0o/
1548070943
1
t5_2fwo
r/programming
public
null
False
ar-pharazon
t2_9sdad
I feel productive in it, but I think they made a lot of very opinionated and under-considered decisions while designing the language. Structural typing is bad—traits would have solved the exact same problem but better. Generics are a major issue for me. The FFI story isn't great. Having to use a `nil` pointer or a boolean flag to represent optionality is stupid. I could go on—there's a long list of small-to-medium scale grievances I have about the language. Taken together, they make the language feel like it has a lot of rough edges, most of which I run into relatively frequently. The upsides (overall feeling of productivity, great GC, fast build times, tooling & library ecosystem, etc.) outweigh these issues for me in most cases, but I personally would stop short of saying the language is "great".
null
0
1544532666
False
0
ebk5gll
t3_a541an
null
null
t1_ebk2kh6
/r/programming/comments/a541an/just_tell_me_how_to_use_go_modules/ebk5gll/
1547468241
8
t5_2fwo
r/programming
public
null
False
pron98
t2_f0thb
Whoa, that's a heavily editorialized headline. Here's an alternative one, equally true to the paper (and equally missing its main contribution): *Garbage collection eliminates a substantial amount of costly programmer work and related bugs completely automatically and without sacrificing performance* BTW, the paper is from 2005 and GCs have made some great strides since then, but the general principle remains: GCs trade off a higher memory footprint for a lower development effort. ------- EDIT: The paper empirically confirms a well-known result that serves as the theoretical underpinning of tracing garbage collection, as detailed in the short 1987 paper by Andrew Appel, [*Garbage Collection Can Be Faster Than Stack Allocation*](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.49.2537). The result says that the computational cost (in throughput) of a tracing garbage collector can be made arbitrarily low by increasing the heap size. The proof is roughly this: for a given application the size of the live set must be bounded (otherwise, no amount of heap is sufficient to run it), and can therefore be treated as constant without loss of generality; the allocation rate must be bounded, too, by a similar argument, and can also be treated as constant. The cost of a single collection of a tracing, copying garbage collector is linear in the size of the live set, and its frequency is linear in the allocation rate (given a heap of a fixed size). As both of these are constant, the total cost of such a garbage collector is a constant overhead, which is just a function of the program and the heap size. However, increasing the heap size linearly reduces the frequency of required collections, and therefore linearly reduces the total cost. The result is that, for a given application, the cost of such garbage collection could be made *arbitrarily low* by increasing the size of the heap. Of course, the quality of a particular GC depends on how much heap is needed to achieve a certain cost (as well as by the latency overhead of the collection).
null
0
1545780991
1545869815
0
ecjut13
t3_a9j2qk
null
null
t3_a9j2qk
/r/programming/comments/a9j2qk/all_of_the_garbage_collectors_we_examine_here/ecjut13/
1548070943
33
t5_2fwo
r/programming
public
null
False
bartturner
t2_dyc5p
I do not think AOT should be any slower than JIT. Should be faster. As it is already binary. They needed AOT for iOS as Apple does now allow JIT. But AOT is also how they get the close to native performance with Dart on iOS.
null
0
1544532667
False
0
ebk5glt
t3_a55qhp
null
null
t1_ebk4vb5
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk5glt/
1547468241
7
t5_2fwo
r/programming
public
null
False
Solomaxwell6
t2_5g353
The cool thing about classifiers is that you can train them to do anything. The tech you use to detect solar panels can just as easily be used to detect dick shaped buildings, or even building shaped dicks, once you get the right training set. In conclusion: Not hotdog
null
0
1545781004
False
0
ecjutod
t3_a8lw4o
null
null
t1_ecc7hub
/r/programming/comments/a8lw4o/stanford_scientists_locate_nearly_all_us_solar/ecjutod/
1548070951
2
t5_2fwo
r/programming
public
null
False
justavault
t2_11i0hu
Nice read. Never had a need to pirate something for DC, after all, there were barely two handful of playworthy games anyways, yet those were awesome.
null
0
1544532774
1544533804
0
ebk5jje
t3_a55xbm
null
null
t3_a55xbm
/r/programming/comments/a55xbm/how_the_dreamcast_copy_protection_was_defeated/ebk5jje/
1547468278
-42
t5_2fwo
r/programming
public
null
False
BubuX
t2_dh7qw
Sorry but that code just allocates an array of ints, not pointers to ints. The same in Go equals <1ms pauses: func main() { a := make([]int, 1e9) for i := 0; i < 10; i++ { start := time.Now() runtime.GC() fmt.Printf("GC took %s\n", time.Since(start).) } runtime.KeepAlive(a) }
null
0
1545781023
False
0
ecjuupk
t3_a9gej5
null
null
t1_ecju2w6
/r/programming/comments/a9gej5/avoiding_high_gc_overhead_with_large_heaps/ecjuupk/
1548070964
1
t5_2fwo
r/programming
public
null
False
alienus
t2_7y2hw
81% of all phones run on Linux, and Samsung offers a way to install a kernel-version locked Linux and people are talking of it like it is hip. I am so sad that we do not have a flexible open source solution, instead we're stuck with, sorry to say- crap like android. Tizen, iOS. As a kid I had such high hopes for technology, crushed by venture capitalist realities of technology.
null
0
1544532832
False
0
ebk5l7p
t3_a4v8zx
null
null
t3_a4v8zx
/r/programming/comments/a4v8zx/web_development_on_a_phone_with_linux_on_dex/ebk5l7p/
1547468298
1
t5_2fwo
r/programming
public
null
False
olzd
t2_i2pmh
If you're going to paste some of the abstract, you should at least mention that the article is comparing **conservative** garbage collection to explicit memory management. **Edit:** stop upvoting I fucked up
null
0
1545781081
1545785263
0
ecjuxtq
t3_a9j2qk
null
null
t1_ecjqxvw
/r/programming/comments/a9j2qk/all_of_the_garbage_collectors_we_examine_here/ecjuxtq/
1548071002
8
t5_2fwo
r/programming
public
null
False
doublehyphen
t2_9v5mu
That is fine because comparing with NULL is not an error in SQL, instead it returns NULL.
null
0
1544532844
False
0
ebk5lk2
t3_a4zp2m
null
null
t1_ebk4udy
/r/programming/comments/a4zp2m/boolean_short_circuiting_is_not_guaranteed_in_sql/ebk5lk2/
1547468302
8
t5_2fwo
r/programming
public
null
False
figurativelybutts
t2_14qu4tf1
I sort of wish that was the case, sans blockchain bullshit. Atomic clocks need tonnes of resources and expertise to get running and stable - not to mention some means to get a "precise enough" source. Too bad that the cheapest [CSAC](https://en.wikipedia.org/wiki/Chip-scale_atomic_clock) I can find is like [a few thousand pounds](https://www.mouser.co.uk/ProductDetail/Microsemi/090-03240-001?qs=sGAEpiMZZMvo8iywG0hSDYdtYmlhWyAqpirI0h9pr5s%3d). But if I can get an atomic clock down to something that could fit in my tiny flat, don't bother with NTP, give me a [PTP](https://en.wikipedia.org/wiki/Precision_Time_Protocol) grand master, 1pps, and 10MHz outputs, amongst others. But first I want a time protocol for the everyone else on earth that isn't a stupid time nut.
null
0
1545781183
False
0
ecjv360
t3_a9ezut
null
null
t1_ecjt7t4
/r/programming/comments/a9ezut/the_internet_of_unprofitable_things/ecjv360/
1548071070
2
t5_2fwo
r/programming
public
null
False
alienus
t2_7y2hw
Do you also use a GUI that operates on top of Termux?
null
0
1544532855
False
0
ebk5lug
t3_a4v8zx
null
null
t1_ebjjohq
/r/programming/comments/a4v8zx/web_development_on_a_phone_with_linux_on_dex/ebk5lug/
1547468306
1
t5_2fwo
r/programming
public
null
False
FunCicada
t2_1p5massk
A Chip Scale Atomic Clock (CSAC) is a compact, low-power atomic clock fabricated using techniques of microelectromechanical systems (MEMS) and incorporating a low-power semiconductor laser as the light source. The first CSAC physics package was demonstrated at NIST in 2003 , based on an invention made in 2001 . The work was funded by the US Department of Defense's Defense Advanced Research Projects Agency (DARPA) with the goal of developing a microchip-sized atomic clock for use in portable equipment. In military equipment it is expected to provide improved location and battlespace situational awareness for dismounted soldiers when the global positioning system is not available, but many civilian applications are also envisioned. Commercial manufacturing of these atomic clocks began in 2011. The world's smallest atomic clock, the clock is 4 x 3.5 x 1 cm (1.5 x 1.4 x 0.4 inches) in size, weighs 35 grams, consumes only 115 mW of power, and can keep time to within 100 microseconds per day after several years of operation.
null
0
1545781214
False
0
ecjv4r9
t3_a9ezut
null
null
t1_ecjv360
/r/programming/comments/a9ezut/the_internet_of_unprofitable_things/ecjv4r9/
1548071088
7
t5_2fwo
r/programming
public
null
False
x89k
t2_1iwkwhjk
That name probably would have suited better, however my plan is to keep the series running until someone following along would be able to develop something that may be considered an operating system.
null
0
1544532856
False
0
ebk5lw2
t3_a4sqkc
null
null
t1_ebk4yvg
/r/programming/comments/a4sqkc/operating_systems_development_for_dummies/ebk5lw2/
1547468307
3
t5_2fwo
r/programming
public
null
False
Styx_
t2_86byd
Doesn’t give him the right to be a cunt about it though.
null
0
1545781278
False
0
ecjv83y
t3_a9hs3u
null
null
t1_ecjryu6
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjv83y/
1548071132
32
t5_2fwo
r/programming
public
null
False
hasen-judy
t2_2j2as8va
It's the exact opposite of Go
null
0
1544532866
False
0
ebk5m5k
t3_a55qhp
null
null
t1_ebk115c
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk5m5k/
1547468310
-5
t5_2fwo
r/programming
public
null
False
irqlnotdispatchlevel
t2_13d5jb
Exactly. > One of the aspects of Trustworthy Computing is that you can trust what's on your computer.  Part of that means that there's absolutely NOTHING on your computer that isn't planned.  If the manufacturer of the software that's on every desktop in your company can't stop their developers from sneaking undocumented features into the product (even features as relatively benign as an Easter Egg), how can you be sure that they've not snuck some other undocumented feature into the code. https://blogs.msdn.microsoft.com/larryosterman/2005/10/21/why-no-easter-eggs/
null
0
1545781298
False
0
ecjv93o
t3_a9hs3u
null
null
t1_ecjoxni
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjv93o/
1548071144
85
t5_2fwo
r/programming
public
null
False
suhcoR
t2_rzwyn0
Duplicate of [https://www.reddit.com/r/programming/comments/a4vfjo/flutter\_will\_change\_everything\_and\_apple\_wont\_do/](https://www.reddit.com/r/programming/comments/a4vfjo/flutter_will_change_everything_and_apple_wont_do/)
null
0
1544532911
False
0
ebk5nez
t3_a4ym6s
null
null
t3_a4ym6s
/r/programming/comments/a4ym6s/flutter_will_change_everything_and_apple_wont_do/ebk5nez/
1547468325
1
t5_2fwo
r/programming
public
null
False
jaydrill
t2_mghmc
I recommend QtCreator, has most of the really necessary features, while being lightweight. And from my experience has one of the best vim emulation layers out there (if you want to try out vim). Biggest downside is CMake / qbs project files.
null
0
1545781329
False
0
ecjvaom
t3_a9fg8h
null
null
t1_ecjtlug
/r/programming/comments/a9fg8h/spacevim_release_v100/ecjvaom/
1548071163
0
t5_2fwo
r/programming
public
null
False
hasen-judy
t2_2j2as8va
What exactly is wrong with 'dep' and the vendors folder? I much prefer the vendoring approach.
null
0
1544532938
False
0
ebk5o64
t3_a541an
null
null
t3_a541an
/r/programming/comments/a541an/just_tell_me_how_to_use_go_modules/ebk5o64/
1547468334
2
t5_2fwo
r/programming
public
null
False
HellfireOwner
t2_2juz5fhu
Inefficient wouldn't be the term, requiring thought is more the term. Inferior automated systems are superior to 'better methods' because, an automated system does not need to be told twice, never forgets, and can do the same mind-numbing job 24/7...of course, one small glitch and the damn thing could turn on itself. ​ Try running any large complex system yourself and see how willing you are to replace human effort with computers. :)
null
0
1545781332
False
0
ecjvata
t3_a9ezut
null
null
t1_ecjd6to
/r/programming/comments/a9ezut/the_internet_of_unprofitable_things/ecjvata/
1548071165
24
t5_2fwo
r/programming
public
null
False
frenetix
t2_7pzi2
>Is there anything in its typesystem which makes it better? I'm learning Go for /r/adventofcode this year, and so far, I really like how "lightweight" and consistent the type system is. On the other hand, the lack of generics is really annoying, and also the lack of really basic stuff like a really spartan standard library. It's insane that I have to roll my own "min" function for integers. Yes, it's only three lines of code, but the Go community appears to see this as a positive.
null
0
1544532993
False
0
ebk5pq5
t3_a541an
null
null
t1_ebk4tyq
/r/programming/comments/a541an/just_tell_me_how_to_use_go_modules/ebk5pq5/
1547468354
7
t5_2fwo
r/programming
public
null
False
lucisferre
t2_3vgsf
>An enterprise-class UI design language and React implementation ​ Ah, don't worry everyone, it's "enterprise-class".
null
0
1545781576
False
0
ecjvn2d
t3_a9hs3u
null
null
t3_a9hs3u
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjvn2d/
1548071316
87
t5_2fwo
r/programming
public
null
False
Robby517
t2_ntghm
Anyone else think that blog layout is pure porn?
null
0
1544533067
False
0
ebk5rtt
t3_a55xbm
null
null
t3_a55xbm
/r/programming/comments/a55xbm/how_the_dreamcast_copy_protection_was_defeated/ebk5rtt/
1547468410
681
t5_2fwo
r/programming
public
null
False
vytah
t2_52x2f
> JIT compilation itself is not explained at all in the post. This post explains it better: https://medium.com/square-corner-blog/rubys-new-jit-91a5c864dd10 TL;DR: After a normal step of converting Ruby to bytecode, the bytecode then gets converted to C and compiled by an external C compiler (either GCC or Clang) to a dynamic library and loaded in order to replace the interpreted code. It sounds funny, it's a hack, but supposedly it works and gives some improvements.
null
0
1545781587
False
0
ecjvnmr
t3_a9g38m
null
null
t1_ecjfzcf
/r/programming/comments/a9g38m/ruby_26_jit_progress_and_future/ecjvnmr/
1548071323
1
t5_2fwo
r/programming
public
null
False
whozurdaddy
t2_3ao1y
\O/
null
0
1544533099
False
0
ebk5sq2
t3_a4oi4w
null
null
t1_ebhk7m7
/r/programming/comments/a4oi4w/git_v2200_released/ebk5sq2/
1547468420
1
t5_2fwo
r/programming
public
null
False
KFCConspiracy
t2_ai139
> We show that GenMS, an Appel-style generational collector with a mark-sweep mature space, matches or exceeds (by up to 9%) the runtime performance of the best explicit memory manager when given five times as much memory. With three times as much memory, garbage collection slows performance I would rather spend the money on memory than decreased productivity and increased likelihood of buggy code for the sorts of things Java is really good at... Enterprise applications. Or depending on whether latency is do critical that I can eat 17%, I would eat 17%. I don't think the conclusion here is particularly novel beyond providing a comparison to a current gc implemention. But who knows maybe this can lead to some innovations in the garbage collected languages like the introduction of a native mixed mode for memory management.
null
0
1545781771
False
0
ecjvwyz
t3_a9j2qk
null
null
t3_a9j2qk
/r/programming/comments/a9j2qk/all_of_the_garbage_collectors_we_examine_here/ecjvwyz/
1548071466
11
t5_2fwo
r/programming
public
null
False
bulldog_swag
t2_121huc
Please don't use monospace font for long bodies of text.
null
0
1544533123
False
0
ebk5tet
t3_a55xbm
null
null
t3_a55xbm
/r/programming/comments/a55xbm/how_the_dreamcast_copy_protection_was_defeated/ebk5tet/
1547468429
-53
t5_2fwo
r/programming
public
null
False
_Fang
t2_a1h50
>not pinning dependencies the current environment is one you shouldn't trust
null
0
1545781772
False
0
ecjvx04
t3_a9hs3u
null
null
t3_a9hs3u
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjvx04/
1548071467
17
t5_2fwo
r/programming
public
null
False
pseudoentropic
t2_c1zkp4i
Oh right, I should have said that I learned to build the entire car as well as a network of interstate highways from scratch before learning to drive which definitely makes more sense.
null
0
1544533178
False
0
ebk5uzw
t3_a54748
null
null
t1_ebjtzc4
/r/programming/comments/a54748/top_5_reasons_to_learn_python_as_your_first/ebk5uzw/
1547468449
3
t5_2fwo
r/programming
public
null
False
victotronics
t2_izlew9
That is not true to the paper. The paper states in the introduction that there is a productivity argument for GC, but that's not the focus of the research. And your "without sacrificing performance" in fact contradicts their conclusion. Your headline could very well be the outcome of another piece of research but it has nothing to do with this.
null
0
1545781785
False
0
ecjvxm6
t3_a9j2qk
null
null
t1_ecjut13
/r/programming/comments/a9j2qk/all_of_the_garbage_collectors_we_examine_here/ecjvxm6/
1548071474
39
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544533225
False
0
ebk5wct
t3_a55xbm
null
null
t1_ebk4cl2
/r/programming/comments/a55xbm/how_the_dreamcast_copy_protection_was_defeated/ebk5wct/
1547468465
-9
t5_2fwo
r/programming
public
null
False
oridb
t2_90rkq
Yes, but your other post wasn't benchmarking the equivalent code. Go was doing the things you were benchmarking in hundreds of microseconds, not tens of milliseconds.
null
0
1545781810
1545783181
0
ecjvyw2
t3_a9gej5
null
null
t1_ecjti8u
/r/programming/comments/a9gej5/avoiding_high_gc_overhead_with_large_heaps/ecjvyw2/
1548071490
6
t5_2fwo
r/programming
public
null
False
muchacho5894
t2_zf4z4
Or more like you slipped and hit your head. Leaving youself vulnerable to the enemy.
null
0
1544533328
False
0
ebk5zci
t3_a55xbm
null
null
t1_ebk4cl2
/r/programming/comments/a55xbm/how_the_dreamcast_copy_protection_was_defeated/ebk5zci/
1547468503
35
t5_2fwo
r/programming
public
null
False
HellfireOwner
t2_2juz5fhu
Actually, physical location can have an effect depending on how the networks are networked.
null
0
1545781988
False
0
ecjw81p
t3_a9ezut
null
null
t1_ecjjupl
/r/programming/comments/a9ezut/the_internet_of_unprofitable_things/ecjw81p/
1548071603
17
t5_2fwo
r/programming
public
null
False
doublehyphen
t2_9v5mu
I don't think that is fair. There is plenty of improvement and innovation currently in language design with for example more advanced type inference (e.g. Crystal) and Rust's lifetimes. It is just that the idea that 4GLs were the future was flawed, all the "generations" have their own niches and it turns out improvement does not necessarily mean moving further from the underlying hardware model.
null
0
1544533342
False
0
ebk5zr1
t3_a4zp2m
null
null
t1_ebjt4hc
/r/programming/comments/a4zp2m/boolean_short_circuiting_is_not_guaranteed_in_sql/ebk5zr1/
1547468508
3
t5_2fwo
r/programming
public
null
False
mattgen88
t2_4jm3y
Well aware. But my point is that you're responsible for what you deploy. That is evident from people being fired over Christmas theme stuff ending up on sites. Since no amount of argument will change that fact that you're responsible for what you deploy, the only solution is to vet and review code. I'm sorry that people think it's unreasonable, but your employer doesn't care. They'll hold you responsible. The only solution is to vet what you use. I really think it isn't me who needs to be thinking differently here. You cannot think it unreasonable to get fired for using code that did something your client or government think is unacceptable and also argue against vetting code you're picking up from the internet. Not to mention the number of security issues that have come up over and over again over not having security practices such as vetting or scanning code for vulnerability (e.g. checkmarx, any other static analysis, snyk, etc) People here are also questioning my credentials simply because I have a different opinion than they. I think your advice, as sage as it is, is likely misdirected.
null
0
1545782010
False
0
ecjw98b
t3_a9hs3u
null
null
t1_ecjtbvc
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjw98b/
1548071618
8
t5_2fwo
r/programming
public
null
False
frenetix
t2_7pzi2
+1 I learned C from the [K&R book](https://en.wikipedia.org/wiki/The_C_Programming_Language) back in the day- it's really not that daunting. C is a pretty simple language, and forces you to think about things like memory management, etc. I wouldn't want to write web services or machine learning stuff with it, but in my experience, programmers who know C generally write better code in other languages, too.
null
0
1544533543
False
0
ebk65je
t3_a54748
null
null
t1_ebjrgh3
/r/programming/comments/a54748/top_5_reasons_to_learn_python_as_your_first/ebk65je/
1547468579
1
t5_2fwo
r/programming
public
null
False
pron98
t2_f0thb
> That is not true to the paper. It is just as true to the paper as the headline given by the poster. My headline captures just as much of the results and discussion as the original one. As the paper is mostly about the design of their "oracular memory management" technique as a baseline (two, really) against which garbage collectors can be benchmarked, I would argue that neither my nor the poster's editorialized headline are true to the spirit of the paper. > that's not the focus of the research Well, it is in the very first sentence of the abstract and the very first paragraph of the body, but yeah, like the poster, I editorialized heavily (and that *was* the focus of my comment, BTW). The paper's actual focus is the design of memory management oracles for GC benchmarking simulations. > your "without sacrificing performance" in fact contradicts their conclusion. In fact it does not. Their conclusion reads, and I quote: "[GC] runtime performance matches or slightly exceeds that of explicit memory management." My point wasn't to argue against or in favor of GC (its trade offs are very clear), or the paper (which presents a clever technique to benchmark garbage collectors, and also includes a relatively fair and balanced overview of GC performance as of 13 years ago), just to argue against heavily editorialized post headlines.
null
1
1545782020
1545786058
0
ecjw9qy
t3_a9j2qk
null
null
t1_ecjvxm6
/r/programming/comments/a9j2qk/all_of_the_garbage_collectors_we_examine_here/ecjw9qy/
1548071624
6
t5_2fwo
r/programming
public
null
False
oparisy
t2_keuy2
I like the vibe of it, though. Reminiscent of old text file tutorials (I learned 8086 ASM this way...)
null
0
1544533602
1544534091
0
ebk67bu
t3_a55xbm
null
null
t1_ebk5tet
/r/programming/comments/a55xbm/how_the_dreamcast_copy_protection_was_defeated/ebk67bu/
1547468601
25
t5_2fwo
r/programming
public
null
False
vytah
t2_52x2f
I can give the sixth way, and I actually can vouch that it actually works unlike the crap in the article: * Use your side project. Literally just this. I have several side projects and I noticed that I stopped working on those I stopped using, and conversely, I keep working on those I use or plan on using soon.
null
0
1545782088
False
0
ecjwdan
t3_a9iso8
null
null
t3_a9iso8
/r/programming/comments/a9iso8/5_proven_ways_to_finish_your_side_project/ecjwdan/
1548071668
48
t5_2fwo
r/programming
public
null
False
goretsky
t2_3tihk
Hello, Yes, you can use an ESET Smart Security Premium for Windows license key to install ESET Internet Security for Windows, ESET NOD32 Antivirus for Windows, ESET Cyber Security Pro for macOS, ESET Cyber Security for macOS, or ESET NOD32 Antivirus for Linux Desktops. Regards, Aryeh Goretsky
null
0
1544533639
False
0
ebk68du
t3_a4tznm
null
null
t1_ebjp2v8
/r/programming/comments/a4tznm/eset_discovers_21_new_linux_malware_families_all/ebk68du/
1547468614
2
t5_2fwo
r/programming
public
null
False
mka696
t2_8fmus
No, Internet Explorer is a browser. Microsoft was sued for bundling a browser. They were not sued for bundling an html rendering engine and javascript engine. Microsoft could bundle V8 and Blink into Windows instead of EdgeHTML and Chakra, and we'd quite a ways closer to a solution. Hopefully with Edge's switch to chromium, we'll get exactly that.
null
0
1545782160
False
0
ecjwh4e
t3_a45jvw
null
null
t1_ebcz1as
/r/programming/comments/a45jvw/electron_and_the_decline_of_native_apps/ecjwh4e/
1548071715
2
t5_2fwo
r/programming
public
null
False
doublehyphen
t2_9v5mu
He should have mentioned which database he was demonstrating it on, but this behavior is hardly unique to PostgreSQL. Moving predicates around is a common and important query optimization.
null
0
1544533681
False
0
ebk69lx
t3_a4zp2m
null
null
t1_ebk2me2
/r/programming/comments/a4zp2m/boolean_short_circuiting_is_not_guaranteed_in_sql/ebk69lx/
1547468630
4
t5_2fwo
r/programming
public
null
False
quicknir
t2_iczmz
I use spacemacs, which is the inspiration for Spacevim, for C++. Spacemacs as the name implies is a pre-configured set of layers etc for emacs, the way spacevim is for vim. It also makes getting cohesive vim bindings in emacs very easy via evil and other packages. It may require more time to get familiar, and more TLC to keep chugging, than a traditional IDE. Though, the Eclipse CDT indexer was a beast that needed to be fed fairly often as well in my experience. However, once you get setup you have full clang based solutions for everything: completion, error checking, and navigation (use ycmd for the first two and rtags for the last). So these things work very reliably for me, at least as reliable as any IDE I've used. Coupled with that you have far superior vim bindings, and just general text editing/searching capability. You also have magit which is a pretty amazing way to interact with git, better (IMHO) keyboard-ability for things like windows management, easier customization. I really like it, and I'm not any kind of vim/emacs fanatic (in fact, if I were doing python more than C++ I'd probably use pycharm over spacemacs).
null
0
1545782177
False
0
ecjwi1b
t3_a9fg8h
null
null
t1_ecjtlug
/r/programming/comments/a9fg8h/spacevim_release_v100/ecjwi1b/
1548071726
2
t5_2fwo
r/programming
public
null
False
sorlafloat
t2_2q1c255k
I'm not sure scales isn't a better word. After all, both languages are bit of a mess, but JS was designed in 2 weeks and can therefore be excused for a lot of its behavior.
null
0
1544533701
False
0
ebk6a8d
t3_a4wvz7
null
null
t1_ebinxdw
/r/programming/comments/a4wvz7/anatomy_of_a_scala_quirk/ebk6a8d/
1547468637
0
t5_2fwo
r/programming
public
null
False
Garethp
t2_3e6hh
So you don't develop in your own universe where you've instigated your own controlled big bang, therefore having created the circumstances in which all particles were created? That's a rookie mistake. Always sandbox your universes so you can be 100% sure that you don't have any overflow from what came before the big bang
null
0
1545782270
False
0
ecjwmwi
t3_a9hs3u
null
null
t1_ecju5rq
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjwmwi/
1548071787
10
t5_2fwo
r/programming
public
null
False
Hendrikto
t2_rsoye
https://www.reddit.com/r/golang/comments/3wfnru/switching_from_php_to_go/cxvxiu1/
null
0
1544533743
False
0
ebk6bia
t3_a541an
null
null
t1_ebk2wrw
/r/programming/comments/a541an/just_tell_me_how_to_use_go_modules/ebk6bia/
1547468654
7
t5_2fwo
r/programming
public
null
False
euyis
t2_5z0io
Anyone using Notepad++ still remember the Je suis Charlie update? Scared the shit out of me back then as my first thought was that someone had some sort of RAT on my computer and was doing a show of force.
null
0
1545782281
False
0
ecjwngj
t3_a9hs3u
null
null
t1_ecjsjrv
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjwngj/
1548071795
111
t5_2fwo
r/programming
public
null
False
m50d
t2_6q02y
It's trivially possible in as much as you could write an interpreter for a reified-generics language in Java. But for a language to be "on the JVM" in a useful sense it has to implement the Java ABI, which obliges it to erase generics.
null
0
1544533754
False
0
ebk6bsb
t3_a55qhp
null
null
t1_ebk1twm
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk6bsb/
1547468656
2
t5_2fwo
r/programming
public
null
False
wanze
t2_9wzb0
What was?
null
0
1545782336
False
0
ecjwq84
t3_a9d94p
null
null
t1_ecjphnf
/r/programming/comments/a9d94p/i_hate_the_pumping_lemma/ecjwq84/
1548071829
1
t5_2fwo
r/programming
public
null
False
MEaster
t2_45thc
For me, it's two main things: The first is that I'm not a fan of dynamic languages. I'm much more comfortable in static languages where the compiler can catch my stupidity before I run the program. The second is that I strongly dislike the idea of meaningful whitespace. To me, whitespace should be purely a readability thing, not a meaningful syntax. Having said that, I do think Python makes a good first language due to how easy it is to get going, how many people use it, and because it handles a lot of the little details so the learner can concentrate on learning how to program.
null
0
1544533760
False
0
ebk6bza
t3_a54748
null
null
t1_ebjua2m
/r/programming/comments/a54748/top_5_reasons_to_learn_python_as_your_first/ebk6bza/
1547468659
2
t5_2fwo
r/programming
public
null
False
MrCalifornian
t2_8xba1
Consider it a reminder to everyone, and a bit of a note to self (the more I say it the more it'll be in the forefront of my mind).
null
0
1545782339
False
0
ecjwqdv
t3_a9hs3u
null
null
t1_ecjw98b
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjwqdv/
1548071831
3
t5_2fwo
r/programming
public
null
False
m50d
t2_6q02y
One of the first ones 12+ years after ML did it?
null
0
1544533851
False
0
ebk6eo3
t3_a55qhp
null
null
t1_ebk2t4o
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk6eo3/
1547468693
8
t5_2fwo
r/programming
public
null
False
istarian
t2_4ttmg
There is no change that shouldn't go in the changelog. And in any case such easter eggs should be for the user not to surprise the developers. Including a default disabled config switch would be appropriate these days. Also if you're goubg to throw in UI wide easter eggs, ypu may as well structure it so it's customizable and maybe pull in locale data. A christmas one is likely far more acceptable in Europe, Canada, the US, or even Mexico than anywhere else. A simple whitelist/blacklist might have saved some of that mess.
null
0
1545782395
1545782989
0
ecjwt6f
t3_a9hs3u
null
null
t3_a9hs3u
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjwt6f/
1548071865
50
t5_2fwo
r/programming
public
null
False
FanOfHoles
t2_2ftopua8
What is "an AI"? There is infinite diversity. Human intelligence is constrained by human brain architecture, "AI" can be anything at all. So the question is somewhat nebulous. "An AI" might instead go fishing, write gibberish, destroy the planet, write bubblesort, or write a 3D IDE that you walk around in (in VR space) while washing your clothes in HCl acid. In the context of the news being reported here, it seems that anything that used to be called "programming" is now called "AI" (same with anything statistics).
null
0
1544533922
False
0
ebk6gu0
t3_a550fu
null
null
t1_ebjydcg
/r/programming/comments/a550fu/microsoft_announces_aiassisted_intellicode_for/ebk6gu0/
1547468719
1
t5_2fwo
r/programming
public
null
False
Revolutionalredstone
t2_6crrj
There is a reason we use low-level difficult languages like C++... true performance is only available to those who are writting ( or in the case of C atleast auditing ) the assembly... that said garbage collection can be done EXTREMELY fast ( implace memory reuse, no system calls etc ) in low level languages, the problem is not the GC itself but the language its used in.
null
0
1545782408
False
0
ecjwtud
t3_a9j2qk
null
null
t3_a9j2qk
/r/programming/comments/a9j2qk/all_of_the_garbage_collectors_we_examine_here/ecjwtud/
1548071874
5
t5_2fwo
r/programming
public
null
False
gott_modus
t2_j2d1j
>Go get it! No
null
0
1544533964
False
0
ebk6hzs
t3_a3qjb5
null
null
t3_a3qjb5
/r/programming/comments/a3qjb5/php_730_go_get_it/ebk6hzs/
1547468734
1
t5_2fwo
r/programming
public
null
False
asocial-workshy
t2_221psd1t
If there are **N cores** and only **N threads** are **active** and running at once there should be minimal context switches. That's the whole point. You might want a yield function: void yield() { schedule.releaseTimeSlice(); scheduler.acquireTimeSlice(); } And on the fast path would reduce down to something like (all the multithreading details are annoying and I'm not sure I got this right): void yield() { struct waiter nynode; stack_of_waiters.push(mynode); struct waiter othernode = stack_of_waiters.pop(); futex_wake(othernode); futex_wait(mynode); } And this would be a slow context switch you are talking about. But this only happens if you call `yield` (or you use a similar wrapper before doing a blocking IO call or similar) which you'd want not to do very commonly anyway. Also Windows has particularly slow context switches compared to Linux and other Unixes which is more on the order of 1000 cycles I believe. I think kernels like L4 have got switches down to around 500 cycles. However WIndows has a complicated User-Mode Scheduling scheme which seems to me possibly useful for this case that could make this faster. **TLDR:** Yes `yield` would be slow. But you don't want to call `yield`.
null
0
1545782500
1545783879
0
ecjwyc1
t3_a961pk
null
null
t1_ech0yzn
/r/programming/comments/a961pk/another_first_for_my_c_games_multithreading/ecjwyc1/
1548071929
1
t5_2fwo
r/programming
public
null
False
AN3223
t2_1sf0wsyf
I also don't get how the title would be clickbait.
null
0
1544533991
False
0
ebk6isj
t3_a549og
null
null
t1_ebjthm2
/r/programming/comments/a549og/malicious_sites_abuse_11yearold_firefox_bug_that/ebk6isj/
1547468743
1
t5_2fwo
r/programming
public
null
False
Umr-at-Tawil
t2_45hcc
The article is comparing precise garbage collectors to explicit memory management. The sentence in the abstract that mentions conservative collectors is talking about how previous work was limited in that way.
null
0
1545782546
False
0
ecjx0mk
t3_a9j2qk
null
null
t1_ecjuxtq
/r/programming/comments/a9j2qk/all_of_the_garbage_collectors_we_examine_here/ecjx0mk/
1548071957
5
t5_2fwo
r/programming
public
null
False
samjmckenzie
t2_1ajtp69
lol, I don't think a single item you mentioned costs the same everywhere
null
0
1544534057
False
0
ebk6ks9
t3_a4n8jv
null
null
t1_ebh8qq1
/r/programming/comments/a4n8jv/why_software_developers_are_paid_5x_more_in_the/ebk6ks9/
1547468768
1
t5_2fwo
r/programming
public
null
False
couscous_
t2_2orqfro0
Makes sense. Thanks for pointing it out.
null
0
1545782693
False
0
ecjx7nr
t3_a9gej5
null
null
t1_ecjulen
/r/programming/comments/a9gej5/avoiding_high_gc_overhead_with_large_heaps/ecjx7nr/
1548072074
2
t5_2fwo
r/programming
public
null
False
limitless__
t2_d7g0w
Not really, at the end of the day the worst case scenario was to pack up and go back. As it turned out after 12 months my company closed the entire US division. I found another job and got an H1B.
null
0
1544534166
False
0
ebk6o4x
t3_a4n8jv
null
null
t1_ebj43t2
/r/programming/comments/a4n8jv/why_software_developers_are_paid_5x_more_in_the/ebk6o4x/
1547468809
3
t5_2fwo
r/programming
public
null
False
myringotomy
t2_9f1cg
You can run the emacs server for faster startup times
null
0
1545782711
False
0
ecjx8j1
t3_a9fg8h
null
null
t1_ecjs4xg
/r/programming/comments/a9fg8h/spacevim_release_v100/ecjx8j1/
1548072085
3
t5_2fwo
r/programming
public
null
False
pron98
t2_f0thb
It does not, though. The simple implementation is having the (frontend) compiler reify a class; just as you could define `StringArrayList` as a subtype of `ArrayList` and that is fine with the "ABI", you could have the compiler do that for you; alternatively, you can have each instance hold a reference to its generic type's parameters. What you lose, however, is the ability to have this work with other languages. Reified generics (for subtypable types) are a very small gain that carries a high interop cost. The JVM doesn't force you to erase generics; the JVM is barely aware of generics. Their implementation is left up to the languages, that can choose to erase or to reify. Most choose to erase, as that's just a more sensible choice in the ecosystem.
null
0
1544534201
1544535568
0
ebk6p70
t3_a55qhp
null
null
t1_ebk6bsb
/r/programming/comments/a55qhp/the_dart_language_considers_adding_sound/ebk6p70/
1547468822
13
t5_2fwo
r/programming
public
null
False
RagingOrangutan
t2_6x55e
Great idea. Everyone should stop writing frontend code, it's not like we need that or anything.
null
0
1545782735
False
0
ecjx9lz
t3_a9hs3u
null
null
t1_ecjnpyq
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjx9lz/
1548072099
23
t5_2fwo
r/programming
public
null
False
0b_0101_001_1010
t2_155rs2
> I wonder if llvm adds them itself or if rustc does it. LLVM does have passes that add many annotations to unannotated IR when optimizations are turned on, but whether Rust or LLVM generate them is a good question. If you wonder about the impact of these annotations, you might already know this, but one can choose `llc` and `opt` as compilers in `gcc.godbolt.org` when choosing LLVM as the programming language, and then once can comment the annotations in/out and see whether `opt` can optimize better with them, or whether `llc` generates better code with them.
null
0
1544534235
False
0
ebk6q9d
t3_a4ufwz
null
null
t1_ebifqzo
/r/programming/comments/a4ufwz/typebased_alias_analysis/ebk6q9d/
1547468835
1
t5_2fwo
r/programming
public
null
False
burning1rr
t2_a4yi8
This reminded me of a story that I can't source right now, about a developer proving copyright infringement of their software by showing that a competitors work contained an easter egg from the original software which hadn't been publicly revealed. While I can't find the original story, I did find a very interesting article discussing the use of copyright easter eggs: https://www.plagiarismtoday.com/2006/08/16/copyright-easter-eggs/ It turns out that these kinds of easter eggs are fairly common in cartography as well. :)
null
0
1545782837
False
0
ecjxef2
t3_a9hs3u
null
null
t3_a9hs3u
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjxef2/
1548072158
42
t5_2fwo
r/programming
public
null
False
combinatorylogic
t2_iab4d
Anti-pattern number 1 - doing unit testing instead of the more sane things.
null
1
1544534242
False
0
ebk6qhu
t3_a56m8z
null
null
t3_a56m8z
/r/programming/comments/a56m8z/unit_testing_antipatterns_full_list/ebk6qhu/
1547468838
-5
t5_2fwo
r/programming
public
null
False
cyanrave
t2_3thxo
Upvote for an answer I can understand at face value.
null
0
1545783032
False
0
ecjxnsq
t3_a9d94p
null
null
t1_ecimzw3
/r/programming/comments/a9d94p/i_hate_the_pumping_lemma/ecjxnsq/
1548072274
1
t5_2fwo
r/programming
public
null
False
bumbumbambam
t2_x5lq3vd
How fucked jira is now that australian neanderthals have made math more illegal than meth ? :D
null
0
1544534288
False
0
ebk6ru4
t3_a4u5k5
null
null
t3_a4u5k5
/r/programming/comments/a4u5k5/jira_is_an_antipattern/ebk6ru4/
1547468854
1
t5_2fwo
r/programming
public
null
False
grauenwolf
t2_570j
And they expect to pay a hell of a lot more than most of us can afford.
null
0
1545783078
False
0
ecjxq1n
t3_a9hs3u
null
null
t1_ecjum86
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjxq1n/
1548072302
29
t5_2fwo
r/programming
public
null
False
samjmckenzie
t2_1ajtp69
Is he/she not allowed to discuss things in a discussion?
null
0
1544534290
False
0
ebk6rvt
t3_a4n8jv
null
null
t1_ebhz8sc
/r/programming/comments/a4n8jv/why_software_developers_are_paid_5x_more_in_the/ebk6rvt/
1547468855
1
t5_2fwo
r/programming
public
null
False
Libr33
t2_y9wzjrm
That scared the shit out of me when I saw that. I thought my phone had gotten a virus somehow.
null
0
1545783375
False
0
ecjy57l
t3_a9hs3u
null
null
t1_ecjsjrv
/r/programming/comments/a9hs3u/the_ant_design_christmas_egg_that_went_wrong/ecjy57l/
1548072491
8
t5_2fwo
r/programming
public
null