Better HN
topnewbestaskshowjobs
Log inSign up

SloopJon

2,613 karma · joined Nov 15, 2013 (13y ago) · 775 submissions

Submissions

comment 5y ago · link · parent

The paper is here (referenced in the Loom docs.):

http://demsky.eecs.uci.edu/publications/c11modelcheck.pdf

This page describes how to get the code (linked from the paper):

http://plrg.ics.uci.edu/software_page/42-2/

I found some data races in an ODBC driver using TSan. Running it through CDSChecker is one of my round tuit projects.

comment 5y ago · link · parent

The Github README shows that the public API uses types from Abseil, a library that "promises no ABI stability, even from one day to the next." That seems problematic.

comment 5y ago · link · parent

> You know there are issues, so that is a good thing.

That was my thought too. Programming is kind of like American Idol--a lot of programmers don't know how bad they are. The submitter said they failed to accomplish a medium complexity task, but it's not clear what this means: got stuck and gave up; missed a deadline; finished, but with poor quality?

From one of the submitter's thirty previous Ask HN submissions, I see experience working with a variety of tools, including machine learning. With batteries-included languages and powerful libraries, you can get pretty far in Tinkertoy mode, assembling the pieces of a solution. When you're faced with a task that demands more programming skill, it can be an adjustment.

If you have a passion for software development, self awareness, and a desire to improve, I think you'll be okay.

comment 5y ago · link · parent

Interesting coincidence that the earlier submission has 340 points. I'm upvoting this submission for the link to AZdecrypt:

https://www.zodiackillersite.com/viewtopic.php?f=81&t=3198

Although it's a Windows executable, it looks like it's possible to build from the source in this repo:

https://github.com/doranchak/azdecrypt

comment 5y ago · link · parent

I haven't seen any pricing on the CMP cards yet. Are you sure they're more expensive?

comment 5y ago · link · parent

It is a sad reflection of 2020 that the Ars Technica system guide is a review of three mainstream prebuilt systems. I looked into the Lenovo, HP, and Dell systems, each of which have showed up on deal sites recently with an RTX 3070, 3080, or 3090. Here are some things I found:

One review claimed that the HP Omen has some kind of RAM serial number check in the BIOS: even if you buy the exact brand and model of HyperX Fury RAM, it will run slower, unless you buy it from HP. Generally, the HP Omen 25L and 30L were both knocked for loud/inadequate cooling. There are also complaints about difficulty canceling orders after discovering long shipping times that were not adequately disclosed at order time.

I didn't research the Alienware Aurora as much as the other two, but I did find some complaints about loud/inadequate cooling.

The Lenovo Legion Tower 7i looked really good. Decent design with adequate cooling. Shipping times are reasonable, because they only seem to list configurations that they actually have. If there is a complaint, it's that their configurations are fixed. You can't configure the RAM or storage. I didn't find as much detail on the 5i, but it seems reasonable within its limits (e.g., doesn't seem to be available with RTX 3080).

I also looked at prebuilts from CyberPower, iBuyPower, Corsair, Falcon Northwest, Origin, and others. I presume that their build quality is superior and/or less proprietary, which is generally reflected in their price.

I gave up on building my own this time around, and bought an MSI Trident X that happened to show up in stock one evening at Adorama. Its 1TB SSD came partitioned strangely (split into two big partitions with a recovery partition in between them), but MSI has a video on YouTube demonstrating how to fix that using Partition Assistant. I've only had it a few days, but I'm impressed that they squeezed a 10700K and RTX 3080 into a box significantly smaller and quieter than my home-built Ivy Bridge with a GTX 1060. I was able to add a 2TB M.2 with no trouble, and there's even room for 2.5" drive or two.

comment 5y ago · link · parent

> We are speaking about languages, not which implementations are available.

When it comes to adoption, an area where Eiffel has clearly lagged, the availability of implementations can't be an afterthought; not when you have good, free implementations for Python, Ruby, Go, Rust, Julia, and many more.

Objective-C and Swift are interesting languages that are held back by the fact that the best environment is Xcode on a Mac. Similarly, Qt has been plagued by license anxiety for years (first the QPL, and now the delayed LGPL releases). Therefore, I would say that one of the "obvious, non-negotiable things any new OO language should have," to quote the article, is a good open source implementation.

comment 5y ago · link · parent

Here's how Eiffel Software describes the licensing for EiffelStudio:

> If you wish to earn a commercial benefit from your application and not release its source code, you must purchase the number of licenses you need for your development from Eiffel Software. After you purchase licenses, you are free to use and distribute your application the way you want (see the end user license agreement).

> If you select the Open Source license, you must release your development under an Open Source license for the benefit of the community at large.

So I'm still confused about the licensing. For the open source license, is a GPL runtime embedded in the compiled program or something?

comment 5y ago · link · parent

> Sadly it never got a big name sponsor to push it.

Has Eiffel had a high-quality open source implementation? My recollection is that Eiffel Studio's software is proprietary and expensive.

comment 5y ago · link · parent

Although I too have lost my muscle memory, not having used Windows as my primary O/S in a while, one thing I miss is the ability to traverse through menus with a series of keystrokes; e.g., Alt-F, then p to print, as opposed to Ctrl-P. This came in handy for menu items with an obscure shortcut, or no shortcut at all.

Similarly, I would preface some programs in the Start menu with a unique number; e.g., Win, P, 1 opened File Explorer; Win, P, 2 opened the Command Prompt, etc. With the Windows 10 start menu, I just start typing, but it sometimes exhibits weird behavior, where it finds what I want after one or two characters, then changes to the wrong thing after I type another (correct) character.

I generally prefer the Cmd-Tab / Cmd-Tilde split on macOS to the Alt-Tab on Windows. However, after all these years, I still can't always predict which window is next--will I go back to the window I was just on, or keep going forward to another one?

comment 5y ago · link · parent

The first few articles I could find on this topic neglected to identify the senators co-sponsoring the bill. Here's a list from boston.cbslocal.com:

* Roy Blunt (R-MO)

* Cindy Hyde-Smith (R-MS)

* James Lankford (R-OK)

* Ed Markey (D-MA)

* Marco Rubio (R-FL)

* Rick Scott (R-FL)

* Sheldon Whitehouse (D-RI)

* Ron Wyden (D-OR)

Wikipedia has some history on similar, short-lived efforts in the past:

> Seasonal observation of DST was first enacted in the US during World Wars I and II, as an attempt conserve fuel. The practice was unpopular and promptly repealed after each war; however, lobbyists from the petroleum industry lobbied to restore DST, as they had noticed it actually increased fuel consumption.

> Permanent DST in the US was briefly enacted by President Nixon in 1974, in response to the 1973 oil crisis. The proposal was initially supported by an estimated 79% of the public; that support dropped to 42% after its first winter, owing to the harshness of dark winter mornings that permanent DST creates. An estimated six school children were also killed by motorists due to the new law.

https://en.wikipedia.org/wiki/Permanent_time_observation_in_...

On the eastern edge of the enormous Eastern time zone, I'm sympathetic to permanent DST, but I'm not sure it's a good idea nationwide. I would probably be in favor of the proposed Atlantic time zone, though.

comment 5y ago · link · parent

Even with scroll bars always visible, as they are on my system (Firefox on macOS 10.15), I can't see that there's a horizontal scrollbar until I go down several pages.

If I change from "Always" to "When scrolling", the only way I can make the horizontal scrollbar appear is to start scrolling by pressing my mouse wheel to the side. It's otherwise utterly invisible, even when I hover over that region. Edit: the table doesn't initially have focus, but if I click it, I can also use the arrow keys.

When I wrote a page to display a very information-dense table, I tried very hard to avoid horizontal scrolling. I abbreviated, used icons and colors, and allowed wrapping. You're implementing a general purpose utility that can have arbitrarily many columns, so you can't really control that.

I'm not much of a web dev, so I may be off base, but I think part of the problem is that you're mixing a page-wide vertical scrollbar with a div- or table-specific horizontal scrollbar.

comment 5y ago · link · parent

I don't like the hidden scroll bars either, so I've set "Show scroll bars" to "Always". If I understand correctly, Simon wants his web site to display a scroll bar on a system that isn't so configured. I'm not sure why--does it mess with the viewport width or something?

Edit: simonw just posted more information on this thread.

comment 5y ago · link · parent

The posted link took me straight to Tim's tweet, so I didn't realize at first that he was replying to @isostandards:

> Hello, unfortunately, the ISO Central Secretariat does not provide free copies of standards. All ISO Publications derive from the work and contributions of ISO and ISO Members that contain intellectual property of demonstrable economic value.

> For this reason, considering the value of standards, their economic and social importance, the costs of their development and maintenance, we and all ISO Members have the interest to protect the value of ISO Publications and National Adoptions, not making them publicly available.

The ISO standard that I have the most experience with is ISO/IEC 9899:1990, aka C90. Part of the reason for that, of course, is that I had a used copy of Herbert Schildt's Annotated ANSI C Standard; it's also a considerably smaller standard than, say, SQL or C++.

I'm of mixed minds as to the value of the C standard. There is certainly value in having a standard. After sufficient study and deliberation, you can usually determine whether an input program or compiler implementation is standards conforming. When I compare the evolution of C and C++ to say, Python and Rust, I have trouble pointing to the specific value that ISO adds.

This isn't really a fair comparison, because the difference between C/C++ and Python/Rust isn't just the process, but the end result. I judge C and C++ not just by ISO's efforts, but by those of Microsoft, IBM, GNU, LLVM, etc. Python and Rust, meanwhile, ship a working reference implementation, and do a pretty good job of it. Rust has improved quite a bit six weeks at a time. C standards, meanwhile, ship closer to every decade. Even the new rapid pace of C++ is every three years.

comment 5y ago · link · parent

Licensed as zlib/png, but binaries are currently €16. It looks like the Unreal integration is being funded in part by a grant from Epic Games.

Interesting to see an open source project in this traditionally high-end boutique market. I think comparable tools include BodyPaint 3D ($995), Substance Painter ($150+), 3DCoat ($99+), and maybe ZBrush ($895) and Mudbox ($7-10 / month).

When I see what textures look like, independent of the model, it's hard to imagine creating them without some kind of painting interface like this.

comment 5y ago · link · parent

I really wanted to build a Zen 3 / RTX 30-something to replace my Ivy Bridge / GTX 1060. After months of chasing the RTX, I finally ordered a prebuilt yesterday with a 10700K / RTX 3080. Now to see if it really is "in stock and ready to ship."

The only thing I feel like I'll be missing in the 10700K compared to the 11700K is AVX512. It's been derided for throttling, but it does look kind of amazing for certain workloads.

One thing I find curious about the Zen 2 and Zen 3 product lines is that the processor I really want is OEM only: first the 3900, now the 5900. I like the idea of twelve cores at an easier-to-cool 65W. I bought an OEM Athlon back in the day, but I don't see a lot of OEM processors for sale these days. Maybe just more fallout from the chip shortage.

comment 5y ago · link · parent

It's also worth understanding whether +0.0 and -0.0 are equivalent in your environment:

* Do they compare equal?

* If they're convertible to boolean, do they both evaluate to false?

* If you serialize/deserialize the value (e.g., to JSON and back), does it maintain the distinction?

* If you send this value to a database (esp. one with stored procedures), how does its behavior compare to your language?

comment 5y ago · link · parent

sprintf() warnings have gotten pretty sophisticated these days. I discovered GCC's -Wformat-overflow the other day. It complained that the buffer for a date string wasn't big enough; e.g., sprintf(buf, "%04d-%02u-%02u", year, month, day), where year, month, and day are 16-bit shorts, and buf was probably eleven or twelve bytes.

It may actually be a bug that I got the warning, because the range of each input was checked, and I think the compiler is supposed to be smart enough to remember that.

comment 5y ago · link · parent

Actually, he does discuss this in section 4b. He doesn't come out as strongly in favor of it, "The jury is still out on whether to recommend this one wholesale," although he does list what he considers some advantages. He also acknowledges in section 6 that it doesn't work for non-moveable types.

Despite my tendencies towards almost-always auto, I can't say that I consistently use auto x = type{init}, but there is certainly nothing wrong with it.

comment 5y ago · link · parent

> It also states that it's more work for the compiler, stating that the template resolution seems more complex, and suggesting it's likely to bloat compile times. That's a more persuasive point (hard numbers are provided at the end of the article)

I take the author's point about the cost of compiling a template, but the benchmark is odd: a thousand functions with a single call to emplace_back(). C++ programmers are (in)famously willing to trade compile-time performance for run-time performance. Complement the compile benchmark with a realistic program benchmark. In a typical program, I would expect emplace_back() to be called many more times than it's compiled.

comment 5y ago · link · parent

That's interesting. There is a policy and process (PEP 541) in place for addressing this, and it seems to have been executed swiftly and responsibly. Is this incident an argument for namespacing, or that the status quo is good enough?

I feel like domain name disputes tilt disproportionately to trademark holders, so I wouldn't like to see, e.g., cupy block a cupyd package or vice versa (or, for that matter, NVIDIA somehow strongarm cupy). On the other hand, you'd like a mechanism by which you can trust that a package comes from the cupy maintainers.

comment 5y ago · link · parent

Does your display have glass in front of the panel? For some reason I find myself touching the glass surface of the 5K iMac a lot, which I probably shouldn't do to a bare panel.

comment 5y ago · link · parent

One thing I haven't had much success with when trying editors like this is dealing with variable data, like Pascal-style strings or varints. Another one is a length field that is either one byte, or a NUL byte followed by two bytes, or three NUL bytes followed by four bytes.

I'll have to give this one a try. It would be nice to be able to sift through binary data like bytecode or some non-standard serialization format without writing a one-off utility for it.

comment 5y ago · link · parent

I don't know about DEC-20, but on VMS, changing a file makes a copy with a new version number:

  $ edit foo.txt
  ...
  Ctrl-Z
  $ dir
  foo.txt;1
  $ edit foo.txt
  ...
  Ctrl-Z
  $ dir
  foo.txt;1 foo.txt;2
When you delete a file, you have to specify a version field (blank for latest):

  $ del foo.txt;
  $ dir
  foo.txt;1
IIRC, you can configure how many versions to keep.

comment 5y ago · link · parent

One of the repair challenges is access to old parts. The drain hose on our three year-old washer sprung a leak. When I called a repair man, he at first said that Samsung doesn't make that part anymore. Fortunately, he was mistaken, but if that's something that happens for a simple hose, imagine trying to replace the "high-end headphone amp" expansion card on this laptop five years from now.

Even if I'm not too excited about the proprietary expansion card system, which will last as long as the founders' attention spans, if it gives access to standard memory and storage, that's an improvement over the current trend.

comment 5y ago · link · parent

After a programmer changed PBKDF2 to use SHA512 instead of SHA-1, I asked whether it made sense to use SHA256 instead for this very reason. With SHA extensions on Intel (pretty rare, incidentally), and the cryptography extension on ARM, I wondered if SHA256 (with more iterations) might put defenders at less of a disadvantage relative to attackers than SHA512.

comment 5y ago · link · parent

> > These are GPUs that could have gone into a graphics card.

That's an interesting take. After the discussion of the announcement earlier this week, I presumed that this was a way for NVIDIA to improve yields by rescuing bad chips from the scrap heap. If a failed 3090/3080/3070 is going to a CMP instead of a 3060, that's not the win-win that they're pitching. If the alternative is a 2060, on the other hand, I'd still give them the benefit of the doubt.

comment 5y ago · link · parent

Thank you. I love this bit at the end of a successful demonstration:

> [The bank manager] raised his hand during this whole all-hands meeting and he says what about the free computers? Do we still get the new computers? I'm like no, I was lying to you. I'm a horrible person.

And this one after getting caught at the wrong bank:

> He calls the guy who hired us to rob the bank. They start talking and halfway through the conversation he literally says do we have to split the cost for this? At that point I realized it was probably going to be okay.

comment 5y ago · link · parent

If NVIDIA feels the need to gimp the upcoming RTX 3060, that suggests that the new CMP cards will not be attractive enough to compete on their own price/merit, or that they will be similarly supply constrained. That said, I'm curious to see how they perform for machine learning.

comment 5y ago · link · parent

What I would like is a blog post about making zsh less different than bash. I'll get to the mind-blowing tricks eventually, but for now I want the old tab completion and word stops back. Maybe I should just chsh back to bash, but the macOS copy of bash is really old now.
1
789
26