2,197 karma · joined Jul 1, 2017 (9y ago) · 1,111 submissions
comment 1d ago · link · parent
That's a sad reality, but this will keep on going until that the pariah state is done and dusted.
Your Uncle Sam and Uncle Bessent want to push it even further to corner the pariah both geographically and financially.
The implication is that the west would soon deem anyone out of that pariah state as spies or proxies.
That's because you aren't supposed to be able to go out for an ordinary people with a blockade on sea or by land, and if you can do so, you are probably a man on a mission. Most people who can fly are either IRGC officials or family members of such.
comment 2d ago · link · parent
comment 3d ago · link · parent
Eventually you are in a neither dead nor alive, but sure can't really do jackshit kind of phase, you got some muscles working, hence why Hawking can still "talk" by the very mini-muscle motion signals processed through the computer used as a leverage. It sure is dead inefficient to a point you can't code with it.
The other thing comes to mind would be cancer, but unless it is so severe like a terminal one I doubt it completely disabled the ability to code.
comment 6d ago · link · parent
This does not work on American options because you have many potential buy and sell opportunity and the exact PDE now exponentially grows. You can only do approximations to it.
I recalled one of my former friend few years ago (parted ways unfortunately) who suggested treating it as Markov chain and create multiple exit points and assign probabilities at the exit points. This essentially turn it into a probalistic automata and is much easier to calculate and simulate, say for example, run Monte Carlo on it.
comment 1w ago · link · parent
It sounds like industral metal and early indie rock to me back then. I never knew it is a big shit until 20 years later.
comment 1w ago · link · parent
C is like a Winchester Model 1897, not saying that it is a bad gun, it is what we call it the good ol' Trench gun, as it ran over the war tunnels of the Great War, and it still packs a punch today, but it only has a half-cock for some level of safety, and there is no trigger disconnector either, so you can easily slam fire it. So it is way too easy to shoot yourself in the foot.
Nowadays we like going for a AKM/AK74, for something maybe more complicated but far more reliable at the same time. That's why we want Rust.
comment 2w ago · link · parent
For big business brands like Costco or Walmart, not so sure. They have stable income and they can issue investment grade corporate bond, so they don't need to use black Friday as a marketing gimmick, they could do this all day every day if they wanted. It's just the cost to acquire customer is different and they have the volume to amortize the cost
comment 2w ago · link · parent
1. Information density. LLM love to shovel in so much packed information in a paragraph.
2. Stiffness in writing style, especially influences from academic writing. Things like "it is not A, it is B" is clearly stemming from dialectic. (man I wish LLM can use more dialectics like syllogism)
3. Following the roots in dialectic, the way that "chat bots", or dare I say, Socratic dialogue, required both the speaker and the responder to have a very high understanding of the topic to be effective. Yet most people are just plain simple, let alone being subject experts, so both the LLM prompter generates slop, and the reader only reads slop
4. The great ADHDification of the society due to tech-addiction. The rise of TikTok or short-form clips, gives an average human a great gratification in dopamine in the terms of fast and infinite visual of information at your fingertip. The attention span of most human now was dragged down from the mean few years ago, and especially apparent in the new generations of students and children. Many people just go for tl;Dr and want to watch clips or play games after, because reading is deemed painful.
While ironically I do have clinical ADHD Type-I since childhood, and I do used to binge play and binge programming (since I started writing game cheats and botnets, boy if I had a goal I will not stop unless my body stopped me), but I'm completely immune to social media (except during the pandemic when it is necessary for communication).
But again, I think those 4 factors are what causing distrust in this new modern version of producer-consumer problem: the fact that your dopamine receptors can't keep up
comment 2w ago · link · parent
comment 2w ago · link · parent
Okay, I will be the one to challenge you.
What do you think about https://docs.python.org/3/library/abc.html and how painful it is to work with?
What do you think about the (quite infamous) Method Resolution Order (MRO) and C3 linearization algorithm, which is, basically a topological sort over the inheritance chain IIRC? And I have a lot of mysterious package bugs are actually due to that breaking, like I used to have with ComfyUI.
But you know, I've worked with Python codebases before, and all those are painful to deal with. Don't get me started with the confusing aspect of **kwargs vs **args, although in JS there is a similar concept called arguments object (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...) and spread operator I think?
Oh, I still remember one particular hell that my team wrote scripts that directly add packages to PYTHONPATH. THE PYTHON FUCKING PATH.
The fact that you can directly append to sys.path is mindblowing and ridiculous to me. You can totally insert some malicious code to take over the program, so this is a huge cybersecurity issue. I tried to solve this by introducing Poetry (or is it PDM? I don't remember) to the team but nobody follows. Back then uv doesn't exist if I remembers, but the effort to "correct" (hell I don't even know if that is really correct or not) it is kinda futile.
As a DevOps that creates a huge dependency hell and I resigned soon after. Perhaps it is a cultural problem I don't want to drill on in too mcuh.
Okay, maybe something else more meta. The fact that Python wants to have duck types and traditional OOP is kind of like having a cake and eat it, you really can't have both, unless you have some form of mediators, like you have interface/protocol in C#/Java/Swift/Obj-C.
With Python, almost everything is a dynamic value, even with the new type hints facility. Same problem goes for JavaScript (and evolving it to a certain extent, TypeScript too).
I think that's one of the few banes of prototypical design I would say, that everything essentially becomes a hash table in live environment.
But I guess it is suffice to say, the legacy of Lisp really does live on.
16.
Techno-Tribalism: Why Do Programmers Wage Holy Wars over Programming Languages?(xice.cx ↗)
5 points · by stevefan1999 · 2w ago · 5 comments
comment 2w ago · link · parent
This. A lot of segregation is very much due to this.
> I think the fact that most coding agent images don’t include dotnet support by default
And it gets worse that that:
https://github.com/openai/codex-universal/issues/13
https://github.com/openai/codex/issues/1276
https://github.com/openai/codex-universal/pull/120
And you see that the community members are doing the work for them, yet they would still refuse using the stiffiest corpo lingo in the most passive aggressive way
"Sorry, we're not accepting PRs in this repo. If you'd like to see a change to the codex universal docker image, please file a feature request in the main codex issue tracker."
Okay, so what the fuck is this:
https://github.com/openai/codex-universal/pull/131
https://github.com/openai/codex-universal/pull/90
I know, but the fact that it is not included by default, then someone made a PR to hopefully get it in, but got refused, tell him to turn around to another issue, and then idling that issue for a long time now, it really pisses me off because there is no communication whatsoever, just like how I have this recent situation with LayerStack fucking up their control panel, and stripped some features, not ever telling me, just avoided me. And it is not that they have a shitty firewall that can do jack shit, and fucking up the control panel with no recovery onset for a month now.
Again, it is all about the lack of communication to not give me a heads up, leaving things on an ambiguous state until I found it out. This is the part that pisses me off and I have to go on a furious exchange in the tickets to them.
"come on, it is just a matter of adding the fucking dotnet SDK by yourself". You know, the problem is not that simple anymore, there is a little hidden agenda which turned into a stance problem, or, oh, well, I hate to say it, "technological politics".
Yeah, I know, "tech is just a tool", then where are all the criticisms when the punks are boasting how "Rust or Golang is so fast, Python and Node is dead" blah blah blah.
Anyway, if you are just trying to hide the vendetta against dotnet, then just say it. Say it out loud and stop fucking around. Make an assertion and stand on your fucking ground.
So simple, "We don't want to add dotnet because it is fucking trash". Now that we know how, so case closed, things can move on now without enduring the radio silence.
comment 3w ago · link · parent
The corporate history of C# is undeniably strong, and even till this day in modern C#, they still have a lot of legacy components in it, like AppDomain, APM and MarshalByRefObject.
It is also unfortunately that C# has largely lost in the AI race, that it failed to gain tractions from AI developers despite heavy investments from Microsoft. Early AI stuff like Semantic Kernel actually included C# as its primary languages besides from Python. Nowadays it is not mentioned so much and the default is just Python but perhaps it really isn't a fair comparison due to the gravity of Python in AI as a whole.
Yet for another fact that even within Microsoft, Rust wins over C# for agentic development, is a clear indication that C# has lost a meaningful place in software development as its former parent started to berate it as well. TypeScript is rewritten in Go rather than C#, and consider the fact that Anders Hejlsberg made both C# and TypeScript...
Sure, maybe Bing and a large part of Azure and Xbox services still have heavily relying on it, probably because of ASP.NET Core and Orleans, but outside of the two Microsoft greenhouses, it is a free for all battle royale where C# don't even have a chance of being picked at due to being too weak.
I even tried to contribute a C# SDK to the Restate project, but the maintainers actively rejected it due to them not being familiar and refused the handover. They said they will consider if there are commercial fundings backing it, then they would starting to consider (that's even with money attached they would still think about it). This also shows how unpopular C#/dotnet is among open source development and failed to build hype. The same Restate project even have a Java SDK for it, so it is not like they can't handle C#, they just didn't like to.
The last few thing C# is good at is just Unity I'm afraid, and that is also dying too as Unity is also not doing so well lately.
comment 3w ago · link · parent
Sam Altman: Oh, I think there are all of these ways where the supply chain—it’s just super non-obvious. An example of this is people... A lot of people want local inference. And somehow, they assume that the problem is solved now. Because, we are going to have open-source models. We’re going to be able to run them on our computers. And so we’re not going to need all the stuff in the data center. But from a global allocation perspective, actually, it’s quite terrible to have everybody have a bunch of the world’s limited supply of DRAM sitting in their own computer. And, being used—
John Collison: Mm-hmm.
Sam Altman: 5% of the time. You want maximum utilization in the cloud if you’re trying to deal with this very supply constrained environment. And somehow everyone’s... Many people’s intuition is the opposite of that.
23.
What's new in the .NET 11 runtime(learn.microsoft.com ↗)
256 points · by stevefan1999 · 3w ago · 1 comment
comment 3w ago · link · parent
comment 3w ago · link · parent
1. phi node consturction is hard
If you think about it, the phi function actually requires you to know where the control is coming from, that means when you try to interpret it in the mental model, you need to memorize it or have some flags to indicate which contorl flow it is coming from. For a human, phi function is basically an oracle function with your mind and memory, because you can look around and deduce phi assignment naturally (usually with leap of faith), but the machines only follow rules and they don't have an oracle. So then:
2. SSA as a control flow problem
So a first principle solution to phi assignment, the standard text book solution, is turning the program into control-flow graph. This reduced the problem into the field of graph theory, that you want to find the predecessors for each phi node on the control-flow graph, until there is no more. An equivalent form of that is dominator graph, where the phi nodes are reduced to finding out the dominance frontier of the control flows, i.e. finding out where the incoming edges are. This algorithm, unfortunately, while direct, takes quadratic time, asymptotically speaking. During this time, you can also coalesce a continuous program instrucion node in the graph, if they formed a linked list somehow until there is another phi that forked the control flow, this is known as "basic block", so to speak.
But it turns out another way to solve this control flow problem, is by turning it "backward", or let's say, inverted.
3. SSA is closely resembled to continuation passing style in functional programming
It turns out SSA has a functional equivalence to what we call A-Normal Form, which works by predefining variables and all the scopes beneath that shares the same scope (if you think about it, which is also dominance relationship, but designated), so there is some kind of push-pop structure, aka stack relationship, turning it into a continuation of a series of let expressions, then this is easily representable using tree-shaped algebraic data types in a depth-first manner (been through it in Rust enums, looks pretty nice actually), and so you can easily pass the control flow as data, and I believe that is also where basic block, again, naturally emerge, because instead of just assigning variables, why don't you just encircle a block of variables, and take that as a "function pointer" (in a more pedantic sense, a function closure with global id) that is effectively unique and immutable?
And because it is "continuation of a series of let expressions", you can easily turn ANF into CPS too by turning each let expression into a call/cc lambda, which finally closes the SSA->ANF->CPS saga.
(And because of that, a far cousin of SSA is algebraic effect, due to its relationship with delimited continuation, which is also a way to break down control flow into resumable blocks like you see in basic-block SSA. Almost the same idea, but for different context, effect systems are more focused on things like async/await and coroutine, where another contender in this area is ST-monad)
So...you need to know the previous location of control flow for determining what path this phi goes, and the fact that it is quadratic using dominance frontier, and ANF construction isn't really intuitive or easy to do it in first place, are there any ways smarter than quadratic?
3. phi node construction is (relatively) easy, if you don't mind missing out on the best performance
It turns out there is a way to do it in linear time, albeit if you think about it, there is a greedy solution to the SSA assignment problem, the idea is from the paper https://c9x.me/compile/bib/braun13cc.pdf.
I'd try my best to explain what I read with this paper few months before, but it really does sound arcane to me initially, until one night after shower it kind of clicked:
a. initialize a hash set to memorize the "seen" variables and instructions
b. if there current variable is not assigned, occupy it and assign it to "seen" set
c. use tarjan's algorithm to isolate the instructions and phis into its own section if they formed cycles, turning them into essentially strongly connected components
d. do a topological sort on the strongly connected components, forming a partial order
e. prune the extra phis in the sorted components, leveraging the partial order as dominance
That's it. It uses memoization, SCC and topological sort, but while some parts of it uses dynamic programming, the overall solution here is still a greedy one. In fact, if you further take a similar idea in register allocation, that technique is called Linear Scan Register Allocation, which is what this article is about.
And if you combine both Linear SSA construction and Linear Scan Register Allocation, the whole codegen now turns from a quadratic algorithm plus NP-Complete problem (by reducing RA into graph coloring, see Chaitin's algorithm), into much faster algorithms down the line. This is very important, because many Just-In-Time compiler I believe used this combo, and is how you get fast baseline JIT compiler in practice.
comment 3w ago · link · parent
These days, hosting a proper mail server isn't really that hard, thanks to Stalwart https://stalw.art/. I did it to my Talos Linux cluster located on LA and utilizing idle resources. It is pretty great
comment 3w ago · link · parent
29.
Kubernetes, mark II? Why Google's giving away gVisor used by A/ and OAI(thenewstack.io ↗)
1 points · by stevefan1999 · 3w ago · discuss
comment 3w ago · link · parent
Colossus 1 & Colossus 2 are located on Tennessee and Mississippi, and Anthropic rents both of them earlier this year.
Now that Democrats are surely going after Trump and Elon Musk and the sidekicks, and both Tennessee and Mississippi turned blue as well, this directly impacts the way Anthropic to source cheap compute and data in the future due to uncertainty around the continuation of SpaceX data centers. And other data center buildouts are likely to be paused for things like power grid connection and environmental impacts and land purpose evaluation, the compute capacity constraints are likely going south, too.
Worse, the proposals around superintelligence is exactly what Anthropic is looking for: slow the fuck down. Now they got the killshot they long desired for, it obviously makes a dent in the capability and capacity of their AI, hence a drop in valuation. I think $800-900B is somewhere I would say okay, and $600-700B is really where it is fair, considering the long term outlook for Anthropic is looming with a greater AI massacre caused by political factors.