287 research outputs found

    DrAST - An attribute debugger for JastAdd

    Get PDF
    Here we present a solution for debugging compilers that use abstract-syntax trees as their internal structure. The solution focuses on capturing one specific state of the compilation process, and should not be confused with the more known step-by-step debugging. The goal is to visualize the current state of the abstract-syntax tree and present its data to the user in an intuitive and interactive way. We believe that deeper understanding of an abstract-syntax tree, and bugs in its structure, can be achieved by visualization of the tree. Few such debuggers exist today however, but with this master thesis we aim to fill this gap. The main feature of the developed tool DrAST is the ability to visualize the abstract-syntax tree. It is also possible to filter the tree, so that only nodes of interest are visualized, while the rest are gathered in what we call clusters. Further, DrAST can display attributes, draw references between nodes, calculate parameterized attributes and is built for further extension. DrAST mainly debugs compilers created in the attribute-grammar-based system JastAdd. By the use of Java reflection and annotations from the JastAdd system, the debugger is able to extract the abstract-syntax tree from a compiler without knowing the specific grammar. In short, DrAST provides a new solution in compiler debugging which can be of use for both students and professionals

    Generation of Sparse Jacobians for the Function Mock-Up Interface 2.0

    Get PDF
    Derivatives, or Jacobians, are commonly required by numerical algorithms. Access to accurate Jacobians often improves the performance and robustness of algorithms, and in addition, efficient implementation of Jacobian computations can reduce the over-all execution time. In this paper, we present methods for computing Jacobians in the context of the Functional Mock-up Interface (FMI), and Modelica. Two prototype implementations, in JModelica.org and OpenModelica are presented and compared in industrial benchmarks

    OAuth versioner 1.0a och 2.0 - En säkerhetsjämförelse

    Get PDF
    In this work two versions of Oauth have been analyzed, the protocol OAuth 1.0a and the newer framework OAuth 2.0. A higher version number is often considered a good thing, but OAuth 2.0 has encountered much criticism. It has been criticised of not being safe enough while OAuth 1.0a was criticised of being very complicated protocol to implement, which has stopped it from growing as expected. The following problem is solved with OAuth: a resource owner has resources on a server. A third party would like to use some of these resources in the resource owner's name. OAuth solves this by letting the resource owner authenticates at the server and agree that the third party is authorized to access the resources that the resource owner possesses. The result of this work led to an implementation of an OAuth client to LinkedIn on PMCG Scandinavia AB's project portal. The result is an OAuth 2.0 solution that gives LinkedIn users the ability to log in to the project portal through LinkedIn. LinkedIns OAuth 2.0 solution was considered to be sufficiently safe and much easier to implement and maintain

    Productivity in relation to organization of a surgical department : a retrospective observational study

    Get PDF
    Background Responsible and efficient resource utilization are important factors in healthcare. The aim of this study was to investigate how total case time differs between two differently organized surgical departments. Methods This is a retrospective observational study of a cohort of patients undergoing elective surgery for breast cancer or malignant melanoma in a university hospital setting in Sweden. All patients were operated on by the same set of surgeons but in two different surgical departments: a general surgery (GS) and a cardiothoracic (CT) surgery department. Patients were selected to the two departments from a waiting list in the order of referral for surgery. The effect of being operated on at the CT department compared to the GS department was estimated by linear regression. Results The final study cohort comprised 349 patients in the GS department and 177 patients in the CT department. Both groups were similar regarding surgical procedures, American Society of Anesthesiologists' score, body mass index, age, sex, and the skill level of the operating surgeon. These covariates were included in the linear regression model. The total case time, defined by the Procedural Time Glossary as room set-up start to room clean-up finish, was significantly shorter for the patients who underwent a surgical procedure at the CT department compared to the GS department, even after adjusting for the background characteristics of the patients and surgeon. After adjusting for the selected covariates, the average difference in total case time between the two departments was - 30.67 min (p = 0.001). Conclusions A significantly shorter total case time was measured for operations in the CT department. Plausible explanations may be more beneficial organizational factors, such as staffing ratio, skill mix in the operating room team, and working behavioral aspects regarding resource utilization.Peer reviewe

    Diagnostic gastrointestinal markers in primary lung cancer and pulmonary metastases

    Get PDF
    Funding Information: Open access funding provided by Lund University. The study was supported by Swedish governmental funding of clinical research (ALF), the Franke and Margareta Bergqvist Foundation, and the Swedish Cancer Society. The funding sources had no role in the design or conduct of the study. Publisher Copyright: © 2023, The Author(s).Histopathological diagnosis of pulmonary tumors is essential for treatment decisions. The distinction between primary lung adenocarcinoma and pulmonary metastasis from the gastrointestinal (GI) tract may be difficult. Therefore, we compared the diagnostic value of several immunohistochemical markers in pulmonary tumors. Tissue microarrays from 629 resected primary lung cancers and 422 resected pulmonary epithelial metastases from various sites (whereof 275 colorectal cancer) were investigated for the immunohistochemical expression of CDH17, GPA33, MUC2, MUC6, SATB2, and SMAD4, for comparison with CDX2, CK20, CK7, and TTF-1. The most sensitive markers for GI origin were GPA33 (positive in 98%, 60%, and 100% of pulmonary metastases from colorectal cancer, pancreatic cancer, and other GI adenocarcinomas, respectively), CDX2 (99/40/100%), and CDH17 (99/0/100%). In comparison, SATB2 and CK20 showed higher specificity, with expression in 5% and 10% of mucinous primary lung adenocarcinomas and both in 0% of TTF-1-negative non-mucinous primary lung adenocarcinomas (25-50% and 5-16%, respectively, for GPA33/CDX2/CDH17). MUC2 was negative in all primary lung cancers, but positive only in less than half of pulmonary metastases from mucinous adenocarcinomas from other organs. Combining six GI markers did not perfectly separate primary lung cancers from pulmonary metastases including subgroups such as mucinous adenocarcinomas or CK7-positive GI tract metastases. This comprehensive comparison suggests that CDH17, GPA33, and SATB2 may be used as equivalent alternatives to CDX2 and CK20. However, no single or combination of markers can categorically distinguish primary lung cancers from metastatic GI tract cancer.Peer reviewe

    Suboptimal dialysis initiation is associated with comorbidities and uraemia progression rate but not with estimated glomerular filtration rate

    Get PDF
    Publisher Copyright: © 2020 The Author(s) 2020. Published by Oxford University Press on behalf of ERA-EDTA.Background: Despite early referral of uraemic patients to nephrological care, suboptimal dialysis initiation (SDI) remains a common problem associated with increased morbimortality. We hypothesized that SDI is related to pre-dialysis care. Methods: In the 'Peridialysis' study, time and reasons for dialysis initiation (DI), clinical and biochemical data and centre characteristics were registered during the pre- and peri-dialytic period for 1583 end-stage kidney disease patients starting dialysis over a 3-year period at 15 nephrology departments in the Nordic and Baltic countries to identify factors associated with SDI. Results: SDI occurred in 42%. Risk factors for SDI were late referral, cachexia, comorbidity (particularly cardiovascular), hypoalbuminaemia and rapid uraemia progression. Patients with polycystic renal disease had a lower incidence of SDI. High urea and C-reactive protein levels, acidosis and other electrolyte disorders were markers of SDI, independently of estimated glomerular filtration rate (eGFR). SDI patients had higher eGFR than non-SDI patients during the pre-dialysis period, but lower eGFR at DI. eGFR as such did not predict SDI. Patients with comorbidities had higher eGFR at DI. Centre practice and policy did not associate with the incidence of SDI. Conclusions: SDI occurred in 42% of all DIs. SDI was associated with hypoalbuminaemia, comorbidity and rate of eGFR loss, but not with the degree of renal failure as assessed by eGFR.Peer reviewe
    corecore